Netlify CLI


build

Build on your local machine

Usage

netlify build

Flags

  • context (string) - Specify a build context or branch (contexts: "production", "deploy-preview", "branch-deploy", "dev")
  • dry (boolean) - Dry run: show instructions without running them
  • filter (string) - For monorepos, specify the name of the application to run the command in
  • offline (boolean) - disables any features that require network access
  • debug (boolean) - Print debugging information

Examples

netlify build