config - AWS IoT Greengrass

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

config

使用AWS 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...