Categorygithub.com/rluisr/cenv
repositorypackage
1.0.1
Repository: https://github.com/rluisr/cenv.git
Documentation: pkg.go.dev

# README

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

PlatformCommand to install
macOS M1curl -Lo cenv https://github.com/rluisr/cenv/releases/latest/download/cenv-darwin-arm64 && chmod +x cenv && sudo mv cenv /usr/local/bin/cenv
macOS Intelcurl -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.