Using the AWS Copilot command line interface
The AWS Copilot command line interface (CLI) commands simplify building, releasing, and operating production-ready containerized applications on Amazon ECS from a local development environment. The AWS Copilot CLI aligns with developer workflows that support modern application best practices: from using infrastructure as code to creating a CI/CD pipeline provisioned on behalf of a user. Use the AWS Copilot CLI as part of your everyday development and testing cycle as an alternative to the AWS Management Console.
AWS Copilot currently supports Linux, macOS, and Windows systems. For more information about the
latest version of the AWS Copilot CLI, see Releases
The source code for the AWS Copilot CLI is available on GitHub
Installing the AWS Copilot CLI
The AWS Copilot CLI can be installed on Linux or macOS systems either by using Homebrew or by manually downloading the binary. Use the following steps with your preferred installation method.
Installing the AWS Copilot CLI using Homebrew
The following command is used to install the AWS Copilot CLI on your macOS or Linux
system using Homebrew. Before installation, you should have Homebrew installed. For
more information, see Homebrew
brew install aws/tap/copilot-cli
Manually installing the AWS Copilot CLI
As an alternative to Homebrew, you can manually install the AWS Copilot CLI on your macOS or Linux system. Use the following command for your operating system to download the binary, apply execute permissions to it, and then verify it works by listing the help menu.
(Optional) Verify the AWS Copilot CLI using PGP signatures
The AWS Copilot CLI executables are cryptographically signed using PGP signatures. The PGP signatures can be used to verify the validity of the AWS Copilot CLI executable. Use the following steps to verify the signatures using the GnuPG tool.
-
Download the AWS Copilot CLI signatures. The signatures are ASCII detached PGP signatures stored in files with the extension
.asc. The signatures file has the same name as its corresponding executable, with.ascappended. -
Verify the signature with the following command.
-
For macOS and Linux systems:
gpg --verify copilot.asc /usr/local/bin/copilot
-
-
For Windows installations, run the following command to add AWS Copilot directory to the path.
e $Env:PATH += ";<path to Copilot executable files>"
Next steps
After installation, learn how to deploy an Amazon ECS application using AWS Copilot. For more information, see Getting started with Amazon ECS using AWS Copilot.

