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 serviceoctelium statusoctelium connect
Listing Resources
You can list the Cluster's Namespaces as follows:
octelium get namespace# ORoctelium get ns
You can also list the Cluster's Services as follows:
octelium get service# ORoctelium 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# ORoctelium 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# ORoctelium 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 jqoctelium get svc -o json | jqoctelium 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# ORocteliumctl version --check