CLI
The cordium CLI is the primary tool for day-to-day Workspace management from a terminal. It provides access to the full Cordium API with a command structure designed around common workflows.
Authentication
Before using the CLI, authenticate with your Cordium installation:
This opens a browser window to complete the Octelium authentication flow. You can also log out later as follows:
The CLI reads the Cordium domain from the OCTELIUM_DOMAIN environment variable or from the configuration file written by cordium login. Use --domain on any command to specify the target installation explicitly when working with multiple Cordium deployments.
cordium run
cordium run is the primary workflow command. It creates a Workspace (if no name is given) or attaches to an existing one, starts it if stopped, waits for it to b ready if needed, and opens an interactive terminal session. Here are some examples:
When a Workspace name is given and the Workspace is already running, cordium run opens a terminal immediately. If the Workspace is stopped, it starts it then it opens a terminal.
cordium terminal
cordium terminal opens an interactive terminal in a running Workspace. Unlike cordium run, it does not create or start a Workspace; the Workspace must already be running.
Multiple cordium terminal invocations against the same Workspace each create independent terminal sessions within that Workspace.
cordium exec
cordium exec runs a single command in a running Workspace and streams its output. It is designed for scripted, non-interactive command execution. Here are some examples:
cordium ssh
cordium ssh opens an SSH session to a running Workspace using the SSH protocol. This enables use cases that require real SSH: local port forwarding, dynamic SOCKS5 proxying, SCP/SFTP file transfer, and compatibility with tools that assume SSH connectivity (VS Code Remote SSH, JetBrains Gateway, Zed remote development, rsync). It's important to understand that you first need to connect to the Octelium Cluster as follows:
Here are some examples:
cordium cp
cordium cp copies files and directories between the local filesystem and a Workspace, or between two Workspaces, using SFTP over SSH. Workspace paths are specified as <workspace>:<path>. As with the cordium ssh command, you first need to connect to the Cluster via the octelium connect command first.
cordium logs
cordium logs streams build and lifecycle logs from a Workspace. Logs cover image pull and build output, repository clone output, and the stdout and stderr of all lifecycle tasks.
Workspace Lifecycle Commands
Deleting a Space deletes all Workspaces, Templates, Secrets, and GitProviders within it.