A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cli.netlify.com/commands/deploy/ below:

Netlify CLI deploy command | Netlify CLI command reference

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:

Lambda functions in the function folder can be in the following configurations for deployment:

functions/

└── nameOfGoFunction

Build binaries of your Go language functions into the functions folder as part of your build process.

Build dependency bundled Node.js lambda functions with tools like webpack or browserify into the function folder as part of your build process.

functions/

└── nameOfBundledNodeJSFunction.js

You can ship unbundled Node.js functions with the CLI, utilizing top level project dependencies, or a nested package.json. If you use nested dependencies, be sure to populate the nested node_modules as part of your build process before deploying using npm or yarn.

project/

├── functions

│ ├── functionName/

│ │ ├── functionName.js (Note the folder and the function name need to match)

│ │ ├── package.json

│ │ └── node_modules/

│ └── unbundledFunction.js

├── package.json

├── netlify.toml

└── node_modules/

Any mix of these configurations works as well.

Function entry points are determined by the file name and name of the folder they are in:

functions/

├── aFolderlessFunctionEntrypoint.js

└── functionName/

├── notTheEntryPoint.js

└── functionName.js

Support for package.json’s main field, and intrinsic index.js entrypoints are coming soon.

Usage

Flags

Examples

netlify deploy

netlify deploy --site my-first-project

netlify deploy --no-build # Deploy without running a build first

netlify deploy --prod

netlify deploy --prod --open

netlify deploy --prod-if-unlocked

netlify deploy --message "A message with an $ENV_VAR"

netlify deploy --auth $NETLIFY_AUTH_TOKEN

netlify deploy --trigger

netlify deploy --context deploy-preview


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4