Setup¶
Currently there are two different ways to setup and use the GitOps CLI.
Docker¶
The official GitOps CLI Docker image comes with all dependencies pre-installed and ready-to-use. Pull it with:
docker pull baloise/gitopscli
docker run --rm -it baloise/gitopscli --help
From Source With Virtualenv¶
Use this for developement and if you want to prevent dependency clashes with other programs in a user installation.
Clone the repository and install the GitOps CLI on your machine:
git clone https://github.com/baloise/gitopscli.git
cd gitopscli/
poetry install
poetry run gitopscli --help
poetry env remove --all
Note: if your poetry is not up to date to handle the files you can use a locally updated version. Execute the following command in your cloned gitopscli directory to use an updated poetry without changing your system installation:
python3 -m venv .venv
source .venv/bin/activate
pip3 install poetry # installs it in the venv
From Source Into User Installation¶
Clone the repository and install the GitOps CLI on your machine:
git clone https://github.com/baloise/gitopscli.git
pip3 install gitopscli/
gitopscli --help
pip3 uninstall gitopscli