Universal Command Line Interface for Yeedu.
Project description
This package offers a unified command line interface to Yeedu’s RESTful-API.
Getting Started
Requirements
The yeedu-cli package works on Python version:
3.8.x and greater
Installation
Installation of the Yeedu CLI and its dependencies use a range of packaging features provided by pip and setuptools. To ensure smooth installation, it’s recommended to use:
pip: 20.0.2 or greater
setuptools: 59.6.0 or greater
python3 -m pip install yeedu-cli
Configuration
Before using the Yeedu CLI, you need to configure your credentials. You can do this in several ways:
Environment Variables
Credentials file
Note: Environment variables are given priority.
Environment Variables
# Below mentioned values are the default values of Environment Variables
YEEDU_RESTAPI_URL="http://localhost:8080"
YEEDU_CLI_LOG_DIR="/.yeedu/cli/logs/"
YEEDU_USERNAME=USER
YEEDU_PASSWORD=PASS
YEEDU_RESTAPI_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFiY2RlZiIsImlkIjoiMSIsImlhdCI6MTY2NzgwOTYwMX0.HwhdTHBttnR0NFtmUDjcxTLMSLfyNuBs7t7GO9zOf08
YEEDU_RESTAPI_TOKEN_FILE_PATH="/home/user/yeedu_cli.config"
YEEDU_CLI_VERIFY_SSL=true
# Provide the YEEDU_SSL_CERT_FILE path if YEEDU_CLI_VERIFY_SSL is set to true.
YEEDU_SSL_CERT_FILE="/home/user/crt"
Credentials File
The yeedu_credentials.config file needs to be created inside the directory home/user/.yeedu/ and should contain JSON formatted as shown below:
{
"YEEDU_USERNAME": "USER",
"YEEDU_PASSWORD": "PASS"
}
Yeedu Session Token
If the user already has the Yeedu Session Token, they can save the token at any location and provide the file path in the environment variable YEEDU_RESTAPI_TOKEN_FILE_PATH.
For example:
YEEDU_RESTAPI_TOKEN_FILE_PATH="/home/user/{FileName}"
The format for storing the token is shown below:
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJpYXQiOjE2ODg3MjA0MjIsImV4cCI6MTY4ODg5MzIyMn0.EfxuXKPBISQB4ep-sPQbo6R7tg2irlnAC_krqnuXJ5Q"
}
Basic Commands
Yeedu CLI command has the following structure:
yeedu <command> <subcommand> [options and parameters]
For example, to list clusters, the command would be:
yeedu cluster list
To view help documentation, use one of the following:
yeedu --help
yeedu <command> --help
yeedu <command> <subcommand> --help
You can read more information on the Yeedu CLI Commands.
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
File details
Details for the file yeedu_cli-4.8.0rc1.tar.gz
.
File metadata
- Download URL: yeedu_cli-4.8.0rc1.tar.gz
- Upload date:
- Size: 55.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e63d14d6e351e08864c97832caaab3e3fca73f6f2f6284eba7086451f7470206 |
|
MD5 | 4ce6a3f1b9cb6e136f8432b9029c1268 |
|
BLAKE2b-256 | d43ddc56b36f08017f63196a641e0334a398217ee6fbfda9c84cd3b4305bfdaf |
Provenance
The following attestation bundles were made for yeedu_cli-4.8.0rc1.tar.gz
:
Publisher:
publish-to-pypi.yml
on yeedu-io/Command-Line-Interface
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
yeedu_cli-4.8.0rc1.tar.gz
- Subject digest:
e63d14d6e351e08864c97832caaab3e3fca73f6f2f6284eba7086451f7470206
- Sigstore transparency entry: 147760866
- Sigstore integration time:
- Predicate type:
File details
Details for the file yeedu_cli-4.8.0rc1-py3-none-any.whl
.
File metadata
- Download URL: yeedu_cli-4.8.0rc1-py3-none-any.whl
- Upload date:
- Size: 97.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e8b5229764250c7329dea8b3735abe7da55db4b90c8c855d5fbb04c03d1e907 |
|
MD5 | 5bc81f86e61d9645ac3962f6bc9d28f1 |
|
BLAKE2b-256 | db98e55f6003e69fa686c9082586bd5277b3416fa943aacfa28f674528c47b0f |
Provenance
The following attestation bundles were made for yeedu_cli-4.8.0rc1-py3-none-any.whl
:
Publisher:
publish-to-pypi.yml
on yeedu-io/Command-Line-Interface
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
yeedu_cli-4.8.0rc1-py3-none-any.whl
- Subject digest:
7e8b5229764250c7329dea8b3735abe7da55db4b90c8c855d5fbb04c03d1e907
- Sigstore transparency entry: 147760867
- Sigstore integration time:
- Predicate type: