Skip to main content

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


Download files

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

Source Distribution

yeedu_cli-4.8.0.tar.gz (55.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yeedu_cli-4.8.0-py3-none-any.whl (97.1 kB view details)

Uploaded Python 3

File details

Details for the file yeedu_cli-4.8.0.tar.gz.

File metadata

  • Download URL: yeedu_cli-4.8.0.tar.gz
  • Upload date:
  • Size: 55.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for yeedu_cli-4.8.0.tar.gz
Algorithm Hash digest
SHA256 79931abf0f6139a20a44aac952e502842f5aac5cddc79d31c27e03f2f2e1e82f
MD5 3ae7334f854474e73f64c4dac6844120
BLAKE2b-256 86a6483c51943eea953650286ada530fac7087983d26d15184f8cd9069a2c2c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for yeedu_cli-4.8.0.tar.gz:

Publisher: publish-to-pypi.yml on yeedu-io/Command-Line-Interface

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yeedu_cli-4.8.0-py3-none-any.whl.

File metadata

  • Download URL: yeedu_cli-4.8.0-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

Hashes for yeedu_cli-4.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3cde0d5cad560ff3ae61da5f0a153a7c29a4d5808b75cf85068352974fb511e8
MD5 5b131667eaa86b8df9d1919e5a362e24
BLAKE2b-256 7f2b7b4af93bcd828cbb510edc7f08e25a100ec9f2e2abe4fd701e9cd3b9f46a

See more details on using hashes here.

Provenance

The following attestation bundles were made for yeedu_cli-4.8.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on yeedu-io/Command-Line-Interface

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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