This is the command line interface for unikube.
The unikube cli documentation is automatically built.
The unikube cli can be installed via pip. Please make sure you are using Python 3.
pip install unikubeThe unikube cli is also installable via brew:
brew tap unikubehq/tooling
brew install unikubehq/tooling/unikubecd docs
make htmlStart the local unikube development cluster:
k3d cluster start unikubeTo install the latest (pre-)release of the Unikube CLI type
sudo pip3 install unikube==<VERSION> --upgrade --preunikube support tab completion scripts for bash.
unikube system completion bash > /etc/bash_completion.d/unikube.bash-completionYou probably need to restart your shell in order for the completion script to do its work.
Create virtual environment:
python -m .venv venvInstall requirements (production + development):
pip3 install -r requirements.txt -r requirements.dev.txtVersion management is handled via bump2version.
bump2version patch|minor|major
Increase dev version (e.g.: 1.0.0-dev1 -> 1.0.0-dev2):
bump2version build
Create release (e.g.: 1.0.0-dev2 -> 1.0.0):
bump2version release
Tests for the unikube cli are developed using the pytest framework in combination with the click.testing module.
Thus, it is possible to run the tests using pytest or by configuring the testing environment/options within your IDE to use pytest.
Currently, most tests are developed directly against the unikube API, using a test-account. Therefore, it is required to provide the credentials via the following environment variables:
TESTRUNNER_EMAIL=...
TESTRUNNER_SECRET=...
Otherwise, tests might fail locally, even if they are correct.
It is possible to set the environment variables using an .env file within your virtual environment or by providing them explicitly:
TESTRUNNER_EMAIL=... TESTRUNNER_SECRET=... pytest
