如何为 AWS Amplify 启用启动部署?

How to enable start-deployment for AWS Amplify?

我想使用 start-deployment for AWS Amplify but my CLI tells me it cannot find that command. How come? It is just one of the features。以及如何解决这个问题?

根据您的屏幕截图,我假设您正在尝试调用名为 amplify 的二进制文件。您应该做的是调用 aws cli 二进制文件的 amplify command(参见概要 [1])。

因此,您的调用应该类似于: aws amplify start-deployment --app-id xxxxx --branch-name xxxxx

[1] https://awscli.amazonaws.com/v2/documentation/api/latest/reference/index.html#synopsis