https://github.com/rluisr/cenv
AWS Copilot CLI Version Manager - so simple
https://github.com/rluisr/cenv
containers developer-tools devops
Last synced: 2 months ago
JSON representation
AWS Copilot CLI Version Manager - so simple
- Host: GitHub
- URL: https://github.com/rluisr/cenv
- Owner: rluisr
- License: apache-2.0
- Created: 2023-10-18T12:44:05.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-05T23:48:14.000Z (almost 2 years ago)
- Last Synced: 2024-06-21T18:53:16.337Z (almost 2 years ago)
- Topics: containers, developer-tools, devops
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
cenv
====
[](https://github.com/rluisr/cenv/actions/workflows/deploy.yml)
cenv is a version manager for [AWS Copilot CLI](https://github.com/aws/copilot-cli).
```shell
$ 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.