📜  Angular CLI-ng analytics命令

📅  最后修改于: 2020-10-27 02:43:49             🧑  作者: Mango


句法

ng analytics   [options]

ng analytics命令可配置角度CLI使用指标。选项是可选参数。

争论

Sr.No. Argument & Syntax Description
1 =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. Following are the details of options.

  • 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.

2 =on|off|prompt Sets the default analytics enablement status for the project.

选件

Sr.No. Option & Syntax Description
1 –help=true|false|json|JSON

Shows a help message for this command in the console.

Default: false

首先转到使用ng build命令更新的角度项目。

现在运行analytics命令。

\>Node\>TutorialsPoint> ng analytics off