ng analytics

From Get docs
< CLI Overview and Command ReferenceAngular/docs/9/cli/analytics


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

ng analytics <settingOrProject> <projectSetting> [options]

Description

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.

Arguments

Argument Description
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.
off|prompt Sets the default analytics enablement status for the project.

Options

Option Description
false|json|JSON

Shows a help message for this command in the console.

Default: false


© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v9.angular.io/cli/analytics