CLI

octl is the CLI for the Platform Orchestrator.

Installation

Install octl on Linux

  1. 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.md
    

    curl -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.md
    
  2. Install octl

    sudo install -o root -g root -m 0755 octl /usr/local/bin/octl
    

Install octl on macOS

  1. 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.md
    

    curl -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.md
    
  2. Install octl

    chmod +x ./octl
    sudo mv ./octl /usr/local/bin/octl
    sudo chown root: /usr/local/bin/octl
    

Install octl on Windows

  1. Download the latest release .

  2. 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 itemEnvironment variableCLI commandDescriptionDefaultMandatory
default_org_idPO_ORG_IDoctl config set-orgThe id of the Organization in which to run commands""Yes
api_urlPO_API_URLoctl config set-urlThe base URL of your Orchestrator API endpoint""Yes
tokenPO_AUTH_TOKENoctl config set-tokenAn 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>

Top