Installation

Manual Deploy

netlify deploy

The netlify deploy command will deploy a site, whether it’s a new site or an existing site.

The first time you deploy, a new site will be created and netlify will prompt for the path to deploy. Netlify stores the site id and the folder in a local .netlify file. After the first deploy you can run netlify deploy to deploy the same project again.

You can also deploy to a specific site_id by passing the -s flag. netlify deploy -s \\\[site_id\\\]

Environments

You can specify an environment for any command with the -e flag. Each environment can have its own settings. This makes it very easy to setup different sites for staging and production.

netlify deploy -e production

Further, you can set up overrides for some settings per-environment. See the deploy context section in our docs for more information.

Continuous Deployment

netlify init

To configure continuous deployment for a front end project or a static site generator, use netlify init from the root of your project. Your project must be a GitHub repository.

Netlify init will guide you through the process of configuring continuous deployment.