CLI
octl is the CLI for the Platform Orchestrator.
2.1.1Installation
Install octl on Linux
Download the latest release with the command
curl -fLO https://github.com/stellwerk-labs/platform-orchestrator-cli/releases/download/v2.1.1/platform-orchestrator-cli_2.1.1_linux_amd64.tar.gz tar xvzf platform-orchestrator-cli_2.1.1_linux_amd64.tar.gz rm platform-orchestrator-cli_2.1.1_linux_amd64.tar.gz README.mdcurl -fLO https://github.com/stellwerk-labs/platform-orchestrator-cli/releases/download/v2.1.1/platform-orchestrator-cli_2.1.1_linux_arm64.tar.gz tar xvzf platform-orchestrator-cli_2.1.1_linux_arm64.tar.gz rm platform-orchestrator-cli_2.1.1_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/v2.1.1/platform-orchestrator-cli_2.1.1_darwin_amd64.tar.gz tar xvzf platform-orchestrator-cli_2.1.1_darwin_amd64.tar.gz rm platform-orchestrator-cli_2.1.1_darwin_amd64.tar.gz README.mdcurl -fLO https://github.com/stellwerk-labs/platform-orchestrator-cli/releases/download/v2.1.1/platform-orchestrator-cli_2.1.1_darwin_arm64.tar.gz tar xvzf platform-orchestrator-cli_2.1.1_darwin_arm64.tar.gz rm platform-orchestrator-cli_2.1.1_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:2.1.1.
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 |
Store a token, for example the token of a service user, from a file or from standard input, so that it does not end up in your shell history or the process list:
octl config set-token --token-file service-user.token
octl config set-token --token-file - # paste the token, then press Ctrl-D
The input holds the token alone, and surrounding whitespace such as a final line break is ignored. A token given as an argument (octl config set-token <token>) still works, but octl prints a warning that it is visible in shell history and the process list.
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