本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
config
使用 Amazon IoT Greengrass 开发工具包命令行界面(GDK CLI)中的 config
命令修改配置文件 gdk-config.json
中 GDK 的配置。
子命令
更新
启动交互式提示以修改现有 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...