diff --git a/website/docs/9-cli-reference/uc.md b/website/docs/9-cli-reference/uc.md index 4226e265..8a4b2502 100644 --- a/website/docs/9-cli-reference/uc.md +++ b/website/docs/9-cli-reference/uc.md @@ -33,6 +33,7 @@ A CLI tool for managing Uncloud resources such as machines, services, and volume * [uc service](uc_service.md) - Manage services in the cluster. * [uc start](uc_start.md) - Start one or more services. * [uc stop](uc_stop.md) - Stop one or more services. +* [uc version](uc_version.md) - Show version and build information. * [uc volume](uc_volume.md) - Manage volumes in the cluster. * [uc wg](uc_wg.md) - Inspect WireGuard network diff --git a/website/docs/9-cli-reference/uc_version.md b/website/docs/9-cli-reference/uc_version.md new file mode 100644 index 00000000..7597f416 --- /dev/null +++ b/website/docs/9-cli-reference/uc_version.md @@ -0,0 +1,30 @@ +# uc version + +Show version and build information. + +``` +uc version [flags] +``` + +## Options + +``` + -h, --help help for version + -o, --output string Output format: 'json' or a Go template (e.g. '{{.Version}}'). + Run with '-o json' to discover the field names available to the template. + (default is human-readable) +``` + +## Options inherited from parent commands + +``` + --connect string Connect to a remote cluster machine without using the Uncloud configuration file. [$UNCLOUD_CONNECT] + Format: [ssh://]user@host[:port], ssh+go://user@host[:port], tcp://host:port, or unix:///path/to/uncloud.sock + -c, --context string Name of the cluster context to use (default is the current context). [$UNCLOUD_CONTEXT] + --uncloud-config string Path to the Uncloud configuration file. [$UNCLOUD_CONFIG] (default "~/.config/uncloud/config.yaml") +``` + +## See also + +* [uc](uc.md) - A CLI tool for managing Uncloud resources such as machines, services, and volumes. +