mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
docs: regenerate CLI reference
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
# uc ctx show
|
||||
|
||||
Show current cluster context.
|
||||
|
||||
```
|
||||
uc ctx show [flags]
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
```
|
||||
-h, --help help for show
|
||||
```
|
||||
|
||||
## 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 ctx](uc_ctx.md) - Switch between different cluster contexts. Contains subcommands to manage contexts.
|
||||
|
||||
@@ -6,11 +6,14 @@ View service logs.
|
||||
|
||||
View logs from all replicas of the specified service(s) across all machines in the cluster.
|
||||
|
||||
To view logs from specific replicas (containers) within a service, use the SERVICE/CONTAINER form,
|
||||
where CONTAINER is a container name, full ID, or unique ID prefix.
|
||||
|
||||
If no services are specified, streams logs from all services defined in the Compose file
|
||||
(compose.yaml by default or the file(s) specified with --file).
|
||||
|
||||
```
|
||||
uc logs [SERVICE...] [flags]
|
||||
uc logs [SERVICE[/CONTAINER]...] [flags]
|
||||
```
|
||||
|
||||
## Examples
|
||||
@@ -37,6 +40,9 @@ uc logs [SERVICE...] [flags]
|
||||
# View logs from a specific time range.
|
||||
uc logs --since 3h --until 1h30m web
|
||||
|
||||
# View logs only from specific replicas (containers).
|
||||
uc logs web/61d57fd3428f api/2f60
|
||||
|
||||
# View logs only from replicas running on specific machines.
|
||||
uc logs -m machine1,machine2 web api
|
||||
```
|
||||
|
||||
@@ -6,11 +6,14 @@ View service logs.
|
||||
|
||||
View logs from all replicas of the specified service(s) across all machines in the cluster.
|
||||
|
||||
To view logs from specific replicas (containers) within a service, use the SERVICE/CONTAINER form,
|
||||
where CONTAINER is a container name, full ID, or unique ID prefix.
|
||||
|
||||
If no services are specified, streams logs from all services defined in the Compose file
|
||||
(compose.yaml by default or the file(s) specified with --file).
|
||||
|
||||
```
|
||||
uc service logs [SERVICE...] [flags]
|
||||
uc service logs [SERVICE[/CONTAINER]...] [flags]
|
||||
```
|
||||
|
||||
## Examples
|
||||
@@ -37,6 +40,9 @@ uc service logs [SERVICE...] [flags]
|
||||
# View logs from a specific time range.
|
||||
uc logs --since 3h --until 1h30m web
|
||||
|
||||
# View logs only from specific replicas (containers).
|
||||
uc logs web/61d57fd3428f api/2f60
|
||||
|
||||
# View logs only from replicas running on specific machines.
|
||||
uc logs -m machine1,machine2 web api
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user