Skip to main content

The Oakestra CLI

Project description

PyPI - Version Codestyle Check PyPI - Python Version

The Oak-CLI is the command line interface for the Oakestra Edge Computing platform.

📚 Check out the Oak-CLI Wiki to get started.


oak (Go CLI) — recommended

The Go-based CLI is a single self-contained binary with no runtime dependencies. It runs on Linux, macOS, and Windows.

Install latest release

Linux / macOS

curl -sSL https://raw.githubusercontent.com/oakestra/oakestra-cli/main/oak_go_cli/install.sh | bash

The script auto-detects your OS and architecture (amd64 / arm64), downloads the latest release binary, installs it to /usr/local/bin/oak, and registers shell completions for bash and zsh.

Windows (PowerShell)

irm https://raw.githubusercontent.com/oakestra/oakestra-cli/main/oak_go_cli/install.ps1 | iex

This downloads the latest oak_cli_windows_amd64.zip, extracts oak.exe, and places it in $Env:LOCALAPPDATA\Programs\oak\, adding that directory to your PATH.

Shell completions

Completions are set up automatically by the install script. To enable them manually:

# zsh — add to ~/.zshrc if not already present
mkdir -p ~/.zsh/completions
oak completion zsh > ~/.zsh/completions/_oak
echo 'fpath=(~/.zsh/completions $fpath)' >> ~/.zshrc
echo 'autoload -Uz compinit && compinit' >> ~/.zshrc

# bash
oak completion bash > /etc/bash_completion.d/oak

# fish
oak completion fish > ~/.config/fish/completions/oak.fish

Build and install from source

Requires Go 1.21+.

# Clone the repository
git clone https://github.com/oakestra/oakestra-cli.git
cd oakestra-cli/oak_go_cli

# Run tests
go test ./...

# Build
go build -o oak .

# Install to $GOPATH/bin (must be on your PATH)
go install .

Quick start

# Point the CLI at your Oakestra root orchestrator
oak config set system_manager_ip <IP>

# Optional: set non-default credentials (default: Admin / Admin)
oak config credentials

# List applications
oak app show

# Create an application from an SLA file
oak app create my_app.json

# List services
oak service show

# Deploy a service instance
oak service deploy <service-id-or-name>

# Scale a service
oak service scale up <service-id-or-name> 3

# Inspect instances
oak service inspect <service-id-or-name>

Run oak --help or oak <command> --help for the full command reference.


oak-cli (Python CLI) — legacy

The original Python-based CLI. Recommended only if you need features not yet available in the Go version.

Benefits

  • Native interface for the Oakestra APIs
  • Eliminates the need to use external third-party tools
  • Accelerated & simpler workflows
  • The CLI commands can be chained together and used in custom scripts
  • Automates tedious tasks away (e.g. acquiring login token, installing dependencies, and much more!)

Requirements

  • Linux (preferably Debian/Ubuntu)
  • Python 3.10+

Install from PyPI

pip install oak-cli

Install from source

git clone https://github.com/oakestra/oakestra-cli.git
cd oakestra-cli
make install-cli

Uninstall

make uninstall-cli
# or
pip uninstall oak-cli

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.5.5.tar.gz (261.3 kB view details)

Uploaded Source

Built Distribution

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

oak_cli-0.5.5-py3-none-any.whl (289.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oak_cli-0.5.5.tar.gz
  • Upload date:
  • Size: 261.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for oak_cli-0.5.5.tar.gz
Algorithm Hash digest
SHA256 94ccfc993be4add0897560f81750b9d92633e171f02279efcc1792ce4bd34ef0
MD5 8047aee71a812370c1ddc42049518921
BLAKE2b-256 a8290cc12fdb8a3ef5d3001c2e2f403ae56b28c3d151d1dd19bff0a8090625ab

See more details on using hashes here.

Provenance

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

Publisher: pypi_publish.yml on oakestra/oakestra-cli

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

File details

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

File metadata

  • Download URL: oak_cli-0.5.5-py3-none-any.whl
  • Upload date:
  • Size: 289.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for oak_cli-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4fecd193ac1cee2425b4dce747c8e1136ca058a248f4e02eb344afa70af0fdc5
MD5 be3b01a9a558d5c6643ebaa8780e32da
BLAKE2b-256 32d2229b79514f08619a35084e284dd9526a871e30e63255bda472709ee550d6

See more details on using hashes here.

Provenance

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

Publisher: pypi_publish.yml on oakestra/oakestra-cli

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