Skip to main content

This is the unikube.io command line interface

Project description

Build Status Quality Gate Status Coverage Status Code style: black Unikube Slack Community

The Unikube CLI

This is the command line interface for unikube.

Documentation

The unikube cli documentation is automatically built.

Installation

General

The unikube cli can be installed via pip. Please make sure you are using Python 3.

pip install unikube

MacOS

The unikube cli is also installable via brew:

brew tap unikubehq/tooling
brew install unikubehq/tooling/unikube

Make Local

cd docs
make html

Development


Setup

Start the local unikube development cluster:

k3d cluster start unikube

Install CLI

To install the latest (pre-)release of the Unikube CLI type

sudo pip3 install unikube==<VERSION> --upgrade --pre

Enable tab completion

unikube support tab completion scripts for bash.

unikube system completion bash > /etc/bash_completion.d/unikube.bash-completion

You probably need to restart your shell in order for the completion script to do its work.

Virtual Environment + Requirements

Create virtual environment:

python -m .venv venv

Install requirements (production + development):

pip3 install -r requirements.txt -r requirements.dev.txt

Version Build + Release

Version 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

Test


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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unikube-1.2.9.tar.gz (66.2 kB view hashes)

Uploaded Source

Built Distribution

unikube-1.2.9-py3-none-any.whl (84.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page