CLI Installation
The OpenChoreo CLI (occ) is the command-line interface for managing OpenChoreo resources, projects, and deployments.
Installationβ
Download and install the binary for your platform:- macOS (Apple Silicon)
- macOS (Intel)
- Linux (x64)
- Linux (ARM)
curl -L https://github.com/openchoreo/openchoreo/releases/download/v1.0.0-rc.2/occ_v1.0.0-rc.2_darwin_arm64.tar.gz | tar -xz && \
sudo mv occ /usr/local/bin/
curl -L https://github.com/openchoreo/openchoreo/releases/download/v1.0.0-rc.2/occ_v1.0.0-rc.2_darwin_amd64.tar.gz | tar -xz && \
sudo mv occ /usr/local/bin/
curl -L https://github.com/openchoreo/openchoreo/releases/download/v1.0.0-rc.2/occ_v1.0.0-rc.2_linux_amd64.tar.gz | tar -xz && \
sudo mv occ /usr/local/bin/
curl -L https://github.com/openchoreo/openchoreo/releases/download/v1.0.0-rc.2/occ_v1.0.0-rc.2_linux_arm64.tar.gz | tar -xz && \
sudo mv occ /usr/local/bin/
Verify Installationβ
occ version
Loginβ
After installing the CLI, configure the OpenChoreo control plane URL and authenticate to start managing resources.
Configure Control Planeβ
Set the OpenChoreo API server endpoint:
occ config controlplane update default --url https://api.<your-domain>
For example, if you followed the On Your Environment guide using nip.io domains, the URL uses the CP_BASE_DOMAIN variable exported in Step 3:
occ config controlplane update default --url https://api.${CP_BASE_DOMAIN}
For local k3d setups, the URL is http://api.openchoreo.localhost:8080. Add the following entries to your /etc/hosts file:
127.0.0.1 api.openchoreo.localhost
127.0.0.1 thunder.openchoreo.localhost
127.0.0.1 observer.openchoreo.localhost
Self-Signed TLS Certificatesβ
If your OpenChoreo setup uses self-signed certificates (the default for the On Your Environment guide), the CLI will fail with certificate verification errors like x509: certificate is not trusted. You need to trust the CA certificate on your machine.
Extract the CA certificate from your cluster:
kubectl get secret openchoreo-ca-secret -n cert-manager \
-o jsonpath='{.data.ca\.crt}' | base64 -d > openchoreo-ca.crt
- macOS
- Linux
- Windows
sudo security add-trusted-cert -d -r trustRoot \
-k /Library/Keychains/System.keychain openchoreo-ca.crt
sudo cp openchoreo-ca.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates
# Run as Administrator
Import-Certificate -FilePath .\openchoreo-ca.crt -CertStoreLocation Cert:\LocalMachine\Root
Authenticateβ
Login to OpenChoreo using the web browser:
occ login
This opens a browser window for authentication. Use the default credentials:
| Username | Password |
|---|---|
admin@openchoreo.dev | Admin@123 |
Verifyβ
After login, confirm you can reach the API and list resources:
# List namespaces
occ namespace list
# List projects
occ project list -n default
# List components in the default project
occ component list -n default
See Alsoβ
- CLI Reference: CLI Reference