

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# config
<a name="greengrass-development-kit-cli-config"></a>

使用 AWS IoT Greengrass 開發套件命令列界面 (GDK CLI) 中的 `config` 命令來修改組態檔案中的 GDK 組態`gdk-config.json`。

**Topics**
+ [update](#greengrass-development-kit-cli-config-update)

## update
<a name="greengrass-development-kit-cli-config-update"></a>

啟動互動式提示來修改現有 GDK 組態檔案中的欄位。

**概要**  

```
$ gdk config update
    [--component]
```

**Arguments (引數)**  
+ `-c`， `--component` – 更新 `gdk-config.json` 檔案中與元件相關的欄位。此引數是必要的，因為它是唯一的選項。

**輸出**  
下列範例顯示執行此命令以設定元件時產生的輸出。  

```
$ gdk config update --component
Current value of the REQUIRED component_name is (default: com.example.PythonHelloWorld): 
Current value of the REQUIRED author is (default: author): 
Current value of the REQUIRED version is (default: NEXT_PATCH): 
Do you want to change the build configurations? (y/n) 
Do you want to change the publish configurations? (y/n)
[2023-09-26 10:19:48] INFO - Config file has been updated. Exiting...
```