ng config
從本工作空間的 angular.json 檔案中獲取或設定 Angular 的配置值。
Retrieves or sets Angular configuration values in the angular.json file for the workspace.
ng config <json-path> <value> [options]
引數
引數 | 說明 | Value Type |
---|---|---|
<json-path> | 要設定或查詢的配置鍵,為 JSON path 格式。比如 "a[3].foo.bar[2]"。如果沒有提供新值,則返回此配置鍵對應的當前值。 The configuration key to set or query, in JSON path format. For example: "a[3].foo.bar[2]". If no new value is provided, returns the current value of this key. | string |
<value> | 如果提供,則為指定配置鍵的新值。 If provided, a new value for the given configuration key. | string |
選項
選項 | 說明 | Value Type | Default Value |
---|---|---|---|
--global | 訪問此呼叫者 home 目錄下的全域性配置。 Access the global configuration in the caller's home directory. 別名: -g | boolean | false |
--help | 在控制檯顯示關於本命令的幫助資訊。 Shows a help message for this command in the console. | true|false|json|JSON | false |