填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

ng deploy

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

ng deploy <project> [options]
      
      ng deploy <project> [options]
    

说明

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

To use the ng deploy command, use ng add to add a package that implements deployment capabilities to your favorite platform. Adding the package automatically updates your workspace configuration, adding a deployment CLI builder. For example:

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

参数

参数说明
<project>

The name of the project to deploy.

选项

选项说明
--help=
true|false|json|JSON

Shows a help message for this command in the console.

默认值: false