Skip to main content
Shows version information for the CLI and, if available, the API server. The table format is consistent with other list outputs and includes a header. If the API server responds to a health check, a second row for the server is added.

Usage

container system version [--format <format>]

Options

--format
string
default:"table"
Output format (values: json, table)

Table output

Columns: COMPONENT, VERSION, BUILD, COMMIT.
container system version
COMPONENT   VERSION                         BUILD   COMMIT
CLI         1.2.3                           debug   abcdef1
API Server  container-apiserver 1.2.3       release 1234abc

JSON output

Backward-compatible with previous CLI-only output. Top-level fields describe the CLI. When available, a server object is included with the same fields.
{
  "version": "1.2.3",
  "buildType": "debug",
  "commit": "abcdef1",
  "appName": "container CLI",
  "server": {
    "version": "container-apiserver 1.2.3",
    "buildType": "release",
    "commit": "1234abc",
    "appName": "container API Server"
  }
}

Build docs developers (and LLMs) love