选择您的 Cookie 首选项

我们使用必要 Cookie 和类似工具提供我们的网站和服务。我们使用性能 Cookie 收集匿名统计数据,以便我们可以了解客户如何使用我们的网站并进行改进。必要 Cookie 无法停用,但您可以单击“自定义”或“拒绝”来拒绝性能 Cookie。

如果您同意,AWS 和经批准的第三方还将使用 Cookie 提供有用的网站功能、记住您的首选项并显示相关内容,包括相关广告。要接受或拒绝所有非必要 Cookie,请单击“接受”或“拒绝”。要做出更详细的选择,请单击“自定义”。

Devfile 命令

聚焦模式
Devfile 命令 - Amazon CodeCatalyst

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

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

目前, CodeCatalyst 仅支持你的开发文件中的exec命令。有关更多信息,请参阅 Devfile.io 文档中的 Adding commands

以下示例说明如何在 devfile 中指定 exec 命令。

commands: - id: setupscript exec: component: test commandLine: "chmod +x script.sh" workingDir: /projects/devfiles - id: executescript exec: component: test commandLine: "./projects/devfiles/script.sh" - id: updateyum exec: component: test commandLine: "yum -y update --security"

连接到开发环境后,您可以通过终端执行定义的命令。

/aws/mde/mde command <command-id> /aws/mde/mde command executescript

对于长时间运行的命令,您可以使用流标志 -s 来实时输出命令的执行。

/aws/mde/mde -s command <command-id>
注意

command-id 必须小写。

支持的 exec 参数 CodeCatalyst

CodeCatalyst 在 devfile 版本 2.0.0 上支持以下exec参数。

  • commandLine

  • component

  • id

  • workingDir

本页内容

隐私网站条款Cookie 首选项
© 2025, Amazon Web Services, Inc. 或其附属公司。保留所有权利。