config - Amazon IoT Greengrass
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

config

使用Amazon IoT Greengrass开发套件config命令行界面 (GDK CLI) 中的命令修改配置文件中 GDK 的配置。gdk-config.json

子命令

update

启动交互式提示以修改现有 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...