User GuideCLI
Overview

Domain Environment Variable

Since octelium and octeliumctl CLIs are designed to work with multiple Clusters at the same time, and since a Cluster is defined and addressed by its domain, therefore octelium and octeliumctl commands need the --domain flag as follows:

octelium get service --domain <DOMAIN>

However, this might become exhausting especially if you do many commands for the same Cluster, therefore you can just set your domain once as an environment variable as follows:

export OCTELIUM_DOMAIN=example.com

Or in Windows PowerShell as follows:

1
$env:OCTELIUM_DOMAIN = "example.com"

Now you can do all your commands without having to add the --domain flag every time as follows:

octelium get service
octelium status
octelium connect

Listing Resources

You can list the Cluster's Namespaces as follows:

octelium get namespace
# OR
octelium get ns

You can also list the Cluster's Services as follows:

octelium get service
# OR
octelium get svc

You can also filter the list of Services by a specific Namespace via the --namespace or -n flag as follows:

octelium get svc --namespace default
# OR
octelium get svc -n production

By default, the list is ordered by the creation date. You can, however, set order the list by name as follows:

octelium get svc --order-by-name

You can also reverse the order of the list as follows:

octelium get svc --order-by-name --order-reverse

You can also set the page and number of items per page for the list as follows:

octelium get svc --items-per-page 10 --page 3

By default, the output of a octeliumctl get command is formatted as a table. You can force the output to be formatted as YAML as follows:

octelium get svc -o yaml
# OR
octelium get svc -o yml

You can also force the output to be formatted as JSON as follows:

octelium get svc -o json
# You can also use jq
octelium get svc -o json | jq
octelium get sess -o json | jq -r .items[0].metadata.uid

CLI Upgrade

You can also check whether there is a new latest version available for your Octelium clients as follows:

octelium version --check
# OR
octeliumctl version --check
© 2025 octelium.comOctelium Labs, LLCAll rights reserved
Octelium and Octelium logo are trademarks of Octelium Labs, LLC.
WireGuard is a registered trademark of Jason A. Donenfeld