Skip to content

Commit 3dc5713

Browse files
committed
Docs: Add system version with format yaml
Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
1 parent 0a4517a commit 3dc5713

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

docs/command-reference.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ container system version [--format <format>]
10331033

10341034
**Options**
10351035

1036-
* `--format <format>`: Output format (values: json, table; default: table)
1036+
* `--format <format>`: Output format (values: json, table, yaml; default: table)
10371037

10381038
**Table Output**
10391039

@@ -1070,6 +1070,21 @@ Backward-compatible with previous CLI-only output. Top-level fields describe the
10701070
}
10711071
```
10721072

1073+
**YAML Output**
1074+
1075+
Equivalent to the JSON output but in YAML format. Each entry in the array represents a component.
1076+
1077+
```yaml
1078+
- version: 1.2.3
1079+
buildType: debug
1080+
commit: abcdef1
1081+
appName: container
1082+
- version: 1.2.3
1083+
buildType: release
1084+
commit: 1234abc
1085+
appName: container-apiserver
1086+
```
1087+
10731088
### `container system logs`
10741089

10751090
Displays logs from the container services. You can specify a time interval or follow new logs in real time.

0 commit comments

Comments
 (0)