You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix!: upgrade to commander@12 and fix some conflicting short option names (#7008)
* fix: use a valid short flag for blobs:get output
`-o` is already used in the base command for `--offline`, so this was being quietly ignored
This can't be considered a breaking change as it has never worked. (I just tried it to be sure.)
See tj/commander.js#2055.
* fix: avoid redefining `--json` option in commands
See tj/commander.js#2055.
* fix: fix duplicate `-o` option for deploy command
It's already used in the BaseCommand for `--offline`.
This is not a breaking change, because this never worked as is.
Same issue as in 9280c55.
* fix: fix duplicate `-a` option in deploy command
It's already defined in the BaseCommand for `--offline`.
* fix: fix still more `--json` option overrides
* fix: fix env:import options
`-r` was already used globally so this was being ignored
* fix: don't mutate the commander singleton
It was redefining the options over and over and over. The latest commander throws.
* chore(deps): bump astro in docs site
* fix(deps): upgrade to commander@12
* types(site): fix jsdoc types in docs script
* fix: remove `--json`, `--offline` from BaseCommand
and centralize `--auth` only in `BaseCommand`
commander@12 doesn't allow redefining the same option, so this pattern was no longer viable
This was a pure refactor, but it uncovered some commands that weren't declaring options they were using, so I fixed
those too.
* fix: undo unnecessary short flag change
Copy file name to clipboardExpand all lines: docs/commands/deploy.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,6 @@ netlify deploy
85
85
**Flags**
86
86
87
87
-`alias` (*string*) - Specifies the alias for deployment, the string at the beginning of the deploy subdomain. Useful for creating predictable deployment URLs. Avoid setting an alias string to the same value as a deployed branch. `alias` doesn’t create a branch deploy and can’t be used in conjunction with the branch subdomain feature. Maximum 37 characters.
88
-
-`auth` (*string*) - Netlify auth token to deploy with
89
88
-`branch` (*string*) - Serves the same functionality as --alias. Deprecated and will be removed in future versions
90
89
-`build` (*boolean*) - Run build command before deploying
91
90
-`context` (*string*) - Context to use when resolving build configuration
@@ -94,14 +93,15 @@ netlify deploy
94
93
-`functions` (*string*) - Specify a functions folder to deploy
95
94
-`json` (*boolean*) - Output deployment data as JSON
96
95
-`message` (*string*) - A short message to include in the deploy log
96
+
-`prod-if-unlocked` (*boolean*) - Deploy to production if unlocked, create a draft otherwise
97
+
-`debug` (*boolean*) - Print debugging information
98
+
-`auth` (*string*) - Netlify auth token - can be used to run this command without logging in
97
99
-`open` (*boolean*) - Open site after deploy
98
100
-`prod` (*boolean*) - Deploy to production
99
-
-`prod-if-unlocked` (*boolean*) - Deploy to production if unlocked, create a draft otherwise
100
101
-`site` (*string*) - A site name or ID to deploy to
101
102
-`skip-functions-cache` (*boolean*) - Ignore any functions created as part of a previous `build` or `deploy` commands, forcing them to be bundled again as part of the deployment
102
103
-`timeout` (*string*) - Timeout to wait for deployment to finish
103
104
-`trigger` (*boolean*) - Trigger a new build of your site on Netlify without uploading local files
104
-
-`debug` (*boolean*) - Print debugging information
0 commit comments