cenv is a version manager for AWS Copilot CLI.
$ cat .copilot-version
1.30.1
$ sudo cenv #or cenv --user
copilot version: v1.30.1
This tool is not intended for local use, but for file-based management of copilot versions hard-coded by CI/CD or other means.
If someone deploys with a different version of copilot, you can create a flow to update the .copilot-version.
Platform | Command to install |
---|---|
macOS M1 | curl -Lo cenv https://github.com/rluisr/cenv/releases/latest/download/cenv-darwin-arm64 && chmod +x cenv && sudo mv cenv /usr/local/bin/cenv |
macOS Intel | curl -Lo cenv https://github.com/rluisr/cenv/releases/latest/download/cenv-darwin-amd64 && chmod +x cenv && sudo mv cenv /usr/local/bin/cenv |
Linux x86 (64-bit) | curl -Lo cenv https://github.com/rluisr/cenv/releases/latest/download/cenv-linux-amd64 && chmod +x cenv && sudo mv cenv /usr/local/bin/cenv |
Linux (ARM) | curl -Lo cenv https://github.com/rluisr/cenv/releases/latest/download/cenv-linux-arm64 && chmod +x cenv && sudo mv cenv /usr/local/bin/cenv |
--user
option install copilot-cli to current directory instead of /usr/local/bin
.
cenv does not have the bash affinity of nvm or tfenv.
This tool simply downloads and installs the binary version written in the current .copilot-version.