/cenv

AWS Copilot CLI Version Manager - so simple

Primary LanguageGoApache License 2.0Apache-2.0

cenv

release

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

Aim

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.

Installation

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

Usage

--user option install copilot-cli to current directory instead of /usr/local/bin.

Limitations

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.