{ "id": "cli/deploy", "title": "ng deploy", "contents": "\n
\n
\n mode_edit\n code\n
\n \n\n\n
\n \n CLI\n
\n\n \n
\n

ng deploylink

\n
\n\n\n \n\n
\n \n

Invokes the deploy builder for a specified project or for the default project in the workspace.

\n\n \nng deploy <project> [options]\n\n\n\n \n

\n \n Description\n

\n

The command takes an optional project name, as specified in the projects section of the angular.json workspace configuration file.\nWhen a project name is not supplied, executes the deploy builder for the default project.

\n

To use the ng deploy command, use ng add to add a package that implements deployment capabilities to your favorite platform.\nAdding the package automatically updates your workspace configuration, adding a deployment\nCLI builder.\nFor example:

\n\n\"projects\": {\n \"my-project\": {\n ...\n \"architect\": {\n ...\n \"deploy\": {\n \"builder\": \"@angular/fire:deploy\",\n \"options\": {}\n }\n }\n }\n}\n\n\n \n\n \n\n

Arguments

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
ArgumentDescriptionValue Type
<project>\n

The name of the project to deploy.

\n\n \n
string
\n\n\n \n\n

Options

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
OptionDescriptionValue TypeDefault Value
\n --configuration\n \n \n

One or more named builder configurations as a comma-separated list as specified in the \"configurations\" section of angular.json.\nThe builder uses the named configurations to run the given target.\nFor more information, see https://angular.io/guide/workspace-config#alternate-build-configurations.

\n\n

Aliases: -c

\n
string
\n --help\n \n \n

Shows a help message for this command in the console.

\n\n \n
true|false|json|JSONfalse
\n\n\n \n
\n
\n\n\n" }