deploy
Create a new deploy from the contents of a folder
Deploys from the build settings found in the netlify.toml file, or settings from the api.
The following environment variables can be used to override configuration file lookups and prompts:
NETLIFY_AUTH_TOKEN
- an access token to use when authenticating commands. KEEP THIS VALUE PRIVATENETLIFY_SITE_ID
- override any linked site in the current working directory.
Usage
netlify deploy
Flags
dir
(option) - Specify a folder to deployfunctions
(option) - Specify a functions folder to deployprod
(boolean) - Deploy to productionopen
(boolean) - Open site after deploymessage
(option) - A short message to include in the deploy logauth
(option) - An auth token to log in withsite
(option) - A site ID to deploy to
Examples
netlify deploy netlify deploy --prod netlify deploy --prod --open netlify deploy --message "A message with an $ENV_VAR"