Skip to main content

Command line utility for K as a Service

Project description

KaaS CLI

Simple Installation

Our deployments can be found on Pypi.

Installation

pip install --user kaas-cli or sudo pip install kaas-cli

For Developers

Prerequisites: python >= 3.10, pip >= 20.0.2, poetry >= 1.3.2.

Installation

To install the package using pip, start by building from Source

make build
pip install dist/*.whl

Configure the CLI by copying the example environment file and setting up the necessary environment variables:

cp .flaskenv.example .flaskenv

Then, edit the .flaskenv file to match your settings.

Environment Variables

Here's an overview of the environment variables:

  • SERVER_URL: The KaaS server API address for the main interaction within the CLI tool. This is a required field. For local development, use http://localhost:5000.
  • DEFAULT_DIRECTORY: The folder path for artifacts. This is an optional field. You can leave it empty.
  • DEFAULT_VAULT_ID: Artifacts should be associated with a project ID. This is an optional field. You can leave it empty.
  • DEFAULT_KEY: If the user is not the owner of the project, they are required to provide a security key. This is an optional field. You can leave it empty.

Usage

After installing the dependencies with poetry install, you can spawn a shell using poetry shell, or alternatively, use make:

make shell
kaas-cli hello
kaas-cli --version

VAULT_SPEC is an important definition. This is used to access specific organizations and vaults with permission control limitng what tokens have access to.

The spec follows the form of

organization/vault_name

To verify the installation, run kaas-cli hello. If you see the message Hello World!, the CLI is set up correctly.

Documentation

For detailed usage instructions of the kaas-cli tool, please refer to the official documentation.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

kaas_cli-0.1.157.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

kaas_cli-0.1.157-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file kaas_cli-0.1.157.tar.gz.

File metadata

  • Download URL: kaas_cli-0.1.157.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.7

File hashes

Hashes for kaas_cli-0.1.157.tar.gz
Algorithm Hash digest
SHA256 ccf9a59ac05834730f135fa8fea8fe76139a6c2e094b7f9da42210c64c736b69
MD5 2e012db29756c598ce64750cdca62288
BLAKE2b-256 0d1486164534a7d5e9c13311b9e2477e889b58ac83de4df28ed8b4eefda3afae

See more details on using hashes here.

File details

Details for the file kaas_cli-0.1.157-py3-none-any.whl.

File metadata

  • Download URL: kaas_cli-0.1.157-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.7

File hashes

Hashes for kaas_cli-0.1.157-py3-none-any.whl
Algorithm Hash digest
SHA256 b9d4ee54b24c915b64f84ade755e566ed7be7d1c9c2d0a739206f0537de5716d
MD5 5c33dc0ec9eda13467151e4b22b7040b
BLAKE2b-256 691edf05ffa39aedcbea777cf79af809de213e7d9de1a98cab408fbe2111be3d

See more details on using hashes here.

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