Fixed the init help text

This commit is contained in:
Eric Allam
2023-06-23 12:22:35 +01:00
parent 3ae4e11bbe
commit d0ad2bd38b
5 changed files with 17 additions and 6 deletions
+1
View File
@@ -23,6 +23,7 @@
"great-meals-listen",
"itchy-rockets-provide",
"modern-emus-suffer",
"quick-stingrays-own",
"stupid-files-cough",
"tough-walls-share"
]
+5
View File
@@ -0,0 +1,5 @@
---
"@trigger.dev/init": patch
---
Fixed the help defaults
+6
View File
@@ -1,5 +1,11 @@
# create-trigger
## 0.2.1-next.2
### Patch Changes
- Fixed the help defaults
## 0.2.1-next.1
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/init",
"version": "0.2.1-next.1",
"version": "0.2.1-next.2",
"description": "The CLI to easily initialize Trigger.dev in your Next.js project",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
+4 -5
View File
@@ -39,23 +39,22 @@ export const parseCliOptions = async () => {
)
.option(
"-k, --api-key <api-key>",
"The development API key to use for the project.",
false
"The development API key to use for the project."
)
.option(
"-e, --endpoint-slug <endpoint-slug>",
"The unique slug for the endpoint to use for this project. (e.g. my-nextjs-project)",
false
"my-nextjs-project"
)
.option(
"-u, --endpoint-url <endpoint-url>",
"The URL of your local Next.js project. (e.g. http://localhost:3000). NOTE: Must be a publicly accessible URL if you are using a deployed Trigger.dev instance",
false
"http://localhost:3000"
)
.option(
"-t, --trigger-url <trigger-url>",
"The URL of the Trigger.dev instance to use. (e.g. https://cloud.trigger.dev)",
false
"https://cloud.trigger.dev"
)
.version(getVersion(), "-v, --version", "Display the version number")
.parse(process.argv);