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

ng analytics

Configures the gathering of Angular CLI usage metrics. See https://v8.angular.io/cli/usage-analytics-gathering.

ng analytics <settingOrProject> <projectSetting> [options]
      
      ng analytics <settingOrProject> <projectSetting> [options]
    

说明

The value of settingOrProject is one of the following.

  • "on" : Enables analytics gathering and reporting for the user.
  • "off" : Disables analytics gathering and reporting for the user.
  • "ci" : Enables analytics and configures reporting for use with Continuous Integration, which uses a common CI user.
  • "prompt" : Prompts the user to set the status interactively.
  • "project" : Sets the default status for the project to the projectSetting value, which can be any of the other values. The projectSetting argument is ignored for all other values of settingOrProject.

参数

参数说明
<settingOrProject>=
on|off|ci|project|prompt

Directly enables or disables all usage analytics for the user, or prompts the user to set the status interactively, or sets the default status for the project.

<projectSetting>=on|off|prompt

Sets the default analytics enablement status for the project.

选项

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

Shows a help message for this command in the console.

默认值: false