LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ng-analytics

manages Angular CLI usage analytics

TLDR

Enable analytics for the current workspace
$ ng analytics enable
copy
Disable analytics for the current workspace
$ ng analytics disable
copy
Disable analytics globally for your user
$ ng analytics disable --global
copy
Check analytics status
$ ng analytics info
copy
Prompt for analytics
$ ng analytics prompt
copy
Disable analytics via environment variable (e.g. in CI)
$ NG_CLI_ANALYTICS=false ng [command]
copy

SYNOPSIS

ng analytics command [options]

DESCRIPTION

ng analytics manages Angular CLI usage analytics. It controls whether anonymous usage data is shared with the Angular team to improve the CLI.The setting is stored in the workspace angular.json, or in the global CLI configuration (e.g. ~/.angular-config.json or under ~/.config/angular/) with --global. Outside a workspace, the global setting is used.

PARAMETERS

enable (alias on)

Enable usage analytics.
disable (alias off)
Disable usage analytics.
info
Show current analytics configuration.
prompt
Interactively ask to set the analytics preference.
-g, --global
Apply to the global configuration in the home directory instead of the current workspace (enable, disable, prompt).

CAVEATS

Setting the environment variable NG_CLI_ANALYTICS to false disables analytics and suppresses the prompt, which is useful in CI.

SEE ALSO

ng(1), ng-config(1)

RESOURCES

Copied to clipboard
Kai