GitOps CLI is a command line interface (CLI) to perform operations on GitOps managed infrastructure repositories, including updates in YAML files.
The official GitOps CLI Docker image comes with all dependencies pre-installed and ready-to-use. Pull it with:
docker pull baloise/gitopscli
Start the CLI and the print the help page with:
docker run --rm -it baloise/gitopscli --help
- Update YAML values in config repository to e.g. deploy an application.
- Add pull request comments.
- Create and delete preview environments in the config repository for a pull request in an app repository.
- Update root config repository with all apps from child config repositories.
For detailed installation and usage instructions, visit https://baloise.github.io/gitopscli/.
Currently, we support BitBucket Server, GitHub and Gitlab.
make init # install dependencies, setup dev gitopscli, install pre-commit hooks, ...
make format # format code
make format-check # check formatting
make lint # run linter
make mypy # run type checks
make test # run unit tests
make coverage # run unit tests and create coverage report
make checks # run all checks (format-check + lint + mypy + test)
make image # build docker image
make docs # serves web docs
make update # update package dependencies