5 lines
5.7 KiB
JSON

{
"id": "cli/analytics",
"title": "ng analytics",
"contents": "\n<article>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular-cli/edit/master/packages/angular/cli/commands/analytics.json?message=docs(...)%3A%20describe%20your%20change...\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n <a href=\"https://github.com/angular/angular-cli/tree/v12.0.0-next.7/packages/angular/cli/commands/analytics.json\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n \n\n\n<div class=\"breadcrumb\">\n <script type=\"application/ld+json\">\n {\n \"@context\": \"http://schema.org\",\n \"@type\": \"BreadcrumbList\",\n \"itemListElement\": [\n { \"@type\": \"ListItem\", \"position\": 1, \"item\": { \"@id\": \"https://angular.io/cli\", \"name\": \"CLI\" } },\n { \"@type\": \"ListItem\", \"position\": 2, \"item\": { \"@id\": \"https://angular.io/cli/analytics\", \"name\": \"analytics\" } }\n ]\n }\n </script>\n <a href=\"cli\">CLI</a>\n</div>\n\n \n<header class=\"cli-header\">\n <h1 id=\"ng-analytics\">ng analytics<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"cli/analytics#ng-analytics\"><i class=\"material-icons\">link</i></a></h1>\n</header>\n\n\n <aio-toc class=\"embedded\"></aio-toc>\n\n <div class=\"cli-body\">\n \n <p>Configures the gathering of Angular CLI usage metrics. See <a href=\"https://angular.io/cli/usage-analytics-gathering\">https://angular.io/cli/usage-analytics-gathering</a>.</p>\n\n \n<code-example hidecopy=\"true\" class=\"no-box api-heading no-auto-link\">ng <span class=\"cli-name\">analytics</span> &#x3C;<var>setting-or-project</var>> &#x3C;<var>project-setting</var>> [<var>options</var>]</code-example>\n\n\n\n \n <h2 class=\"no-anchor\" id=\"mode_edit---code----------description\">\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular-cli/edit/master/packages/angular/cli/commands/analytics-long.md?message=docs%3A%20describe%20your%20change...\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n <a href=\"https://github.com/angular/angular-cli/tree/v12.0.0-next.7/packages/angular/cli/commands/analytics-long.md\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n Description\n </h2>\n <p>The value of <em>settingOrProject</em> is one of the following.</p>\n<ul>\n<li>\"on\" : Enables analytics gathering and reporting for the user.</li>\n<li>\"off\" : Disables analytics gathering and reporting for the user.</li>\n<li>\"ci\" : Enables analytics and configures reporting for use with Continuous Integration,\nwhich uses a common CI user.</li>\n<li>\"prompt\" : Prompts the user to set the status interactively.</li>\n<li>\"project\" : Sets the default status for the project to the <em>projectSetting</em> value, which can be any of the other values. The <em>projectSetting</em> argument is ignored for all other values of <em>settingOrProject</em>.</li>\n</ul>\n\n \n\n \n\n<h2 class=\"no-anchor\" id=\"arguments\">Arguments</h2>\n<table class=\"is-full-width list-table property-table\">\n <thead>\n <tr>\n <th width=\"15%\">Argument</th>\n <th width=\"40%\">Description</th>\n <th>Value Type</th>\n </tr>\n </thead>\n <tbody>\n \n <tr class=\"cli-option\">\n <td><code class=\"cli-option-syntax no-auto-link\">&#x3C;<var>setting-or-project</var>></code></td>\n <td>\n <p>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.</p>\n\n \n </td>\n <td><code class=\"cli-option-syntax no-auto-link\">on|off|ci|project|prompt</code></td>\n </tr>\n \n <tr class=\"cli-option\">\n <td><code class=\"cli-option-syntax no-auto-link\">&#x3C;<var>project-setting</var>></code></td>\n <td>\n <p>Sets the default analytics enablement status for the project.</p>\n\n \n </td>\n <td><code class=\"cli-option-syntax no-auto-link\">on|off|prompt</code></td>\n </tr>\n \n </tbody>\n</table>\n\n\n \n\n<h2 class=\"no-anchor\" id=\"options\">Options</h2>\n<table class=\"is-full-width list-table property-table\">\n <thead>\n <tr>\n <th width=\"15%\">Option</th>\n <th width=\"40%\">Description</th>\n <th>Value Type</th>\n <th>Default Value</th>\n </tr>\n </thead>\n <tbody>\n \n <tr class=\"cli-option\">\n <td>\n <code class=\"cli-option-syntax no-auto-link\">--help</code>\n </td>\n <td>\n \n <p>Shows a help message for this command in the console.</p>\n\n \n </td>\n <td><code class=\"no-auto-link\">true|false|json|JSON</code></td>\n <td><code class=\"no-auto-link\">false</code></td>\n </tr>\n \n </tbody>\n</table>\n\n\n \n </div>\n</article>\n\n<!-- links to this doc:\n - cli\n-->\n<!-- links from this doc:\n - cli\n - cli/analytics#ng-analytics\n - https://angular.io/cli/usage-analytics-gathering\n - https://github.com/angular/angular-cli/edit/master/packages/angular/cli/commands/analytics-long.md?message=docs%3A%20describe%20your%20change...\n - https://github.com/angular/angular-cli/edit/master/packages/angular/cli/commands/analytics.json?message=docs(...)%3A%20describe%20your%20change...\n - https://github.com/angular/angular-cli/tree/v12.0.0-next.7/packages/angular/cli/commands/analytics-long.md\n - https://github.com/angular/angular-cli/tree/v12.0.0-next.7/packages/angular/cli/commands/analytics.json\n-->"
}