Files
coder/docs/reference/cli/ping.md
Danny Kopping 4c438bd4d3 feat(cli): add local and UTC time options to ping cmd (#16648)
It's sometimes useful to see when each pong was received, for
correlating these times with other events.

---------

Signed-off-by: Danny Kopping <danny@coder.com>
2025-02-24 05:38:17 +00:00

55 lines
1.0 KiB
Markdown
Generated

<!-- DO NOT EDIT | GENERATED CONTENT -->
# ping
Ping a workspace
## Usage
```console
coder ping [flags] <workspace>
```
## Options
### --wait
| | |
|---------|-----------------------|
| Type | <code>duration</code> |
| Default | <code>1s</code> |
Specifies how long to wait between pings.
### -t, --timeout
| | |
|---------|-----------------------|
| Type | <code>duration</code> |
| Default | <code>5s</code> |
Specifies how long to wait for a ping to complete.
### -n, --num
| | |
|------|------------------|
| Type | <code>int</code> |
Specifies the number of pings to perform. By default, pings will continue until interrupted.
### --time
| | |
|------|-------------------|
| Type | <code>bool</code> |
Show the response time of each pong in local time.
### --utc
| | |
|------|-------------------|
| Type | <code>bool</code> |
Show the response time of each pong in UTC (implies --time).