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
Built Distribution
File details
Details for the file oak_cli-0.4.10.tar.gz
.
File metadata
- Download URL: oak_cli-0.4.10.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaebeb2daa3271aaecfab5bbf92ac65bb047cce9742b0b6821b098c74696f0d4 |
|
MD5 | 6161f9eeb150a6de364a6be82dd360e9 |
|
BLAKE2b-256 | 83fbf35d8b79f23920d9e6071f21953b53d0ea073b3e288ee29ac5918979f439 |
Provenance
The following attestation bundles were made for oak_cli-0.4.10.tar.gz
:
Publisher:
pypi_publish.yml
on oakestra/oakestra-cli
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
oak_cli-0.4.10.tar.gz
- Subject digest:
eaebeb2daa3271aaecfab5bbf92ac65bb047cce9742b0b6821b098c74696f0d4
- Sigstore transparency entry: 147910704
- Sigstore integration time:
- Predicate type:
File details
Details for the file oak_cli-0.4.10-py3-none-any.whl
.
File metadata
- Download URL: oak_cli-0.4.10-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c324e21fbdd17d9493268df3886ba763240db5e60d367ebf5a12ca759778323f |
|
MD5 | 5ddf389a89295e7b4576e9a7aa5ad82e |
|
BLAKE2b-256 | 8f0b2c01b038880be8a9a46ac5c1a9c84c41f281e9968d00bfe25e66ed83ecf9 |
Provenance
The following attestation bundles were made for oak_cli-0.4.10-py3-none-any.whl
:
Publisher:
pypi_publish.yml
on oakestra/oakestra-cli
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
oak_cli-0.4.10-py3-none-any.whl
- Subject digest:
c324e21fbdd17d9493268df3886ba763240db5e60d367ebf5a12ca759778323f
- Sigstore transparency entry: 147910706
- Sigstore integration time:
- Predicate type: