CLI
octl is the CLI for the Platform Orchestrator.
1.2.0Installation
Install octl on Linux
Download the latest release with the command
curl -fLO https://github.com/stellwerk-labs/platform-orchestrator-cli/releases/download/v1.2.0/platform-orchestrator-cli_1.2.0_linux_amd64.tar.gz tar xvzf platform-orchestrator-cli_1.2.0_linux_amd64.tar.gz rm platform-orchestrator-cli_1.2.0_linux_amd64.tar.gz README.mdcurl -fLO https://github.com/stellwerk-labs/platform-orchestrator-cli/releases/download/v1.2.0/platform-orchestrator-cli_1.2.0_linux_arm64.tar.gz tar xvzf platform-orchestrator-cli_1.2.0_linux_arm64.tar.gz rm platform-orchestrator-cli_1.2.0_linux_arm64.tar.gz README.mdInstall octl
sudo install -o root -g root -m 0755 octl /usr/local/bin/octlNote
If you do not have root access on the target system, you can still install octl to the
~/.local/bindirectory:chmod +x octl mkdir -p ~/.local/bin mv ./octl ~/.local/bin/octl # and then append (or prepend) ~/.local/bin to $PATH
Install octl on macOS
Download the latest release with the command
curl -fLO https://github.com/stellwerk-labs/platform-orchestrator-cli/releases/download/v1.2.0/platform-orchestrator-cli_1.2.0_darwin_amd64.tar.gz tar xvzf platform-orchestrator-cli_1.2.0_darwin_amd64.tar.gz rm platform-orchestrator-cli_1.2.0_darwin_amd64.tar.gz README.mdcurl -fLO https://github.com/stellwerk-labs/platform-orchestrator-cli/releases/download/v1.2.0/platform-orchestrator-cli_1.2.0_darwin_arm64.tar.gz tar xvzf platform-orchestrator-cli_1.2.0_darwin_arm64.tar.gz rm platform-orchestrator-cli_1.2.0_darwin_arm64.tar.gz README.mdInstall octl
chmod +x ./octl sudo mv ./octl /usr/local/bin/octl sudo chown root: /usr/local/bin/octl
Install octl on Windows
Download the latest release .
Decompress the zip file, and move the binary to your PATH.
Available as Docker Image
octl is also published as a Docker image , which can be used like docker run --rm -it ghcr.io/stellwerk-labs/octl:1.2.0.
Validate your installation
Run octl --version to ensure octl is in your path. Expected output, matching your installed version:
octl version github.com/stellwerk-labs/platform-orchestrator-cli <version XX.YY.ZZ> <commit-hash> <commit-date>
CLI cheat sheet
An overview of common and useful CLI commands is available in the CLI cheat sheet.
Authentication
Once your installation administrator has created your user and organization, use the octl login command to authenticate the CLI against the configured API endpoint.
octl login
This obtains a short-lived authentication token which is written to the local config file.
Configuration
octl will maintain a local configuration in a config file located at ~/.config/octl/config.yaml. Use the command octl config or the list below to see available configuration items.
Each configuration item can be overridden using an Environment Variable.
The command octl config show displays the effective configuration, taking any override into account.
| Config item | Environment variable | CLI command | Description | Default | Mandatory |
|---|---|---|---|---|---|
default_org_id | PO_ORG_ID | octl config set-org | The id of the Organization in which to run commands | "" | Yes |
api_url | PO_API_URL | octl config set-url | The base URL of your Orchestrator API endpoint | "" | Yes |
token | PO_AUTH_TOKEN | octl config set-token | An authentication token. The session token obtained via octl login will be written into this property | "" | Yes |
Commands
octl follows a hierarchical command structure generally adhering to this pattern:
octl <verb> <object> [additional classification]
E.g. to see the details of a particular Provider, use this command:
octl get provider <type> <id>
All available commands are listed and explained in the CLI online help. Use the -h or --help flag to see usage details on any command level, e.g.:
octl get provider -h