mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
* feat: add uc ctx show This only shows the current context and nothing more. On error nothing is printed (also no error). This is useful to include in your prompt. See: #314 Signed-off-by: Miek Gieben <miek@miek.nl> * docs Signed-off-by: Miek Gieben <miek@miek.nl> --------- Signed-off-by: Miek Gieben <miek@miek.nl>
32 lines
1.1 KiB
Markdown
32 lines
1.1 KiB
Markdown
# uc ctx
|
|
|
|
Switch between different cluster contexts. Contains subcommands to manage contexts.
|
|
|
|
```
|
|
uc ctx [flags]
|
|
```
|
|
|
|
## Options
|
|
|
|
```
|
|
-h, --help help for ctx
|
|
```
|
|
|
|
## 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.
|
|
* [uc ctx connection](uc_ctx_connection.md) - Choose a new default connection for the current context.
|
|
* [uc ctx ls](uc_ctx_ls.md) - List available cluster contexts.
|
|
* [uc ctx show](uc_ctx_show.md) - Show current cluster context.
|
|
* [uc ctx use](uc_ctx_use.md) - Switch to a different cluster context.
|
|
|