Command line utility for K as a Service
Project description
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
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
Built Distribution
Hashes for kaas_cli-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9d892d48fa4870ed011d88d69543942d632915c0aed36e9962469c70b569b18 |
|
MD5 | 729fbb7b94aa8cb2098c616aabc52b0c |
|
BLAKE2b-256 | 141149795a7a927e0346aae0c171fb14b0f6aa56909065d44208b38a775ae64d |