Skip to main content

The Oakestra CLI

Project description

Oakestra CLI

oakestra-cli is a very basic command line tool for controlling your Oakestra setup.

It is intended to be an interface for the API as well as a development tool.

The CLI supports command (tab) autocompletion.

Usage

The package can be called via oak.

Currently, it supports the creation, deletion, inspection, and (un)deployment of applications and services.

E.g. To deploy a default application with two services:

oak applications create default_app_with_services --deploy

Note: The CLI supports short command aliases. The command above can be shortened like this:

oak a c default_app_with_services -d

You should see a similar output if the command was successful:

Success: Create new application based on 'default_app_with_services'
Success: Deploy a new instance for the service '66040243c7723114bb83b914'
Success: Deploy a new instance for the service '66040243c7723114bb83b919'

You can inspect the services like this:

oak services status

Or like this: oak s s

Service status output:

All current services: '2'
 Service '0':
   - microservice -
   id: '66040243c7723114bb83b914'
   name: 'curl'
   ns: 'test'
   parent app: 'clientsrvr: 660402439df62d60bb95452b'
   - resources -
   memory: '100'
   vcpus: '1'
   - container -
   image: 'docker.io/curlimages/curl:7.82.0'
   - networking -
   port: '9080'
   - instances -
   instances: '1'
 Service '1':
   - microservice -
   id: '66040243c7723114bb83b919'
   name: 'nginx'
   ns: 'test'
   parent app: 'clientsrvr: 660402439df62d60bb95452b'
   - resources -
   memory: '100'
   vcpus: '1'
   - container -
   image: 'docker.io/library/nginx:latest'
   - networking -
   port: '6080:60/tcp'
   - instances -
   instances: '1'

For a more detailed explanation try out the CLI and use the -h flag.

Installation

pip install oak-cli

For CLI Contributors/Developers

For local development with "hot-reload" functionality simply install the package via poetry.

Useful commands

poetry install
poetry build
twine upload dist/*

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

oak_cli-0.4.9.tar.gz (260.2 kB view details)

Uploaded Source

Built Distribution

oak_cli-0.4.9-py3-none-any.whl (285.6 kB view details)

Uploaded Python 3

File details

Details for the file oak_cli-0.4.9.tar.gz.

File metadata

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

File hashes

Hashes for oak_cli-0.4.9.tar.gz
Algorithm Hash digest
SHA256 c6095d2dcea6783157c183d8b8647578f7eea8ac1809f4740117fda1f766c3e3
MD5 8fd896c92710862ba819c26b23662c50
BLAKE2b-256 9fe13b0b4ce814c6d47e93f6e4bc8deb69a832efd667ef6f3faebb78dd5b9e36

See more details on using hashes here.

Provenance

The following attestation bundles were made for oak_cli-0.4.9.tar.gz:

Publisher: pypi_publish.yml on oakestra/oakestra-cli

Attestations:

File details

Details for the file oak_cli-0.4.9-py3-none-any.whl.

File metadata

  • Download URL: oak_cli-0.4.9-py3-none-any.whl
  • Upload date:
  • Size: 285.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for oak_cli-0.4.9-py3-none-any.whl
Algorithm Hash digest
SHA256 316f321fc68b852c39343f2305174c264854bc202df9cbe7413a1dd4e97793eb
MD5 f370486cadba42ff6f4dc68f9618801e
BLAKE2b-256 4129d17809f692bf2ec669e488c1759e839dc64fe7c4fb679cc7a07e50ea680e

See more details on using hashes here.

Provenance

The following attestation bundles were made for oak_cli-0.4.9-py3-none-any.whl:

Publisher: pypi_publish.yml on oakestra/oakestra-cli

Attestations:

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