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
Copy file name to clipboardExpand all lines: docs/commands/deploy.md
+1-2
Original file line number
Diff line number
Diff line change
@@ -85,18 +85,17 @@ 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
-
-`branch` (*string*) - Serves the same functionality as --alias. Deprecated and will be removed in future versions
89
88
-`context` (*string*) - Specify a deploy context for environment variables read during the build (”production”, ”deploy-preview”, ”branch-deploy”, ”dev”) or `branch:your-branch` where `your-branch` is the name of a branch (default: dev)
90
89
-`dir` (*string*) - Specify a folder to deploy
91
90
-`filter` (*string*) - For monorepos, specify the name of the application to run the command in
92
91
-`functions` (*string*) - Specify a functions folder to deploy
93
92
-`json` (*boolean*) - Output deployment data as JSON
94
93
-`message` (*string*) - A short message to include in the deploy log
95
94
-`no-build` (*boolean*) - Do not run build command before deploying. Only use this if you have no need for a build or your site has already been built.
95
+
-`open` (*boolean*) - Open site after deploy
96
96
-`prod-if-unlocked` (*boolean*) - Deploy to production if unlocked, create a draft otherwise
97
97
-`debug` (*boolean*) - Print debugging information
98
98
-`auth` (*string*) - Netlify auth token - can be used to run this command without logging in
99
-
-`open` (*boolean*) - Open site after deploy
100
99
-`prod` (*boolean*) - Deploy to production
101
100
-`site` (*string*) - A site name or ID to deploy to
102
101
-`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
Copy file name to clipboardExpand all lines: src/commands/deploy/index.ts
+3-10
Original file line number
Diff line number
Diff line change
@@ -96,10 +96,7 @@ Support for package.json's main field, and intrinsic index.js entrypoints are co
96
96
'--alias <name>',
97
97
'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.',
98
98
)
99
-
.option(
100
-
'-b, --branch <name>',
101
-
'Serves the same functionality as --alias. Deprecated and will be removed in future versions',
102
-
)
99
+
.addOption(newOption('-b, --branch <name>','Do not use - renamed to --alias.').hideHelp(true))
103
100
.option('-O, --open','Open site after deploy',false)
104
101
.option('-m, --message <message>','A short message to include in the deploy log')
105
102
.option('-s, --site <name-or-id>','A site name or ID to deploy to',env.NETLIFY_SITE_ID)
@@ -152,15 +149,11 @@ For more information about Netlify deploys, see ${terminalLink(docsUrl, docsUrl)
0 commit comments