An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

cenv
====

[![release](https://github.com/rluisr/cenv/actions/workflows/deploy.yml/badge.svg)](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.