diff --git a/docs/dev/tools/cli.md b/docs/dev/tools/cli.md index 48dfbed7c7..2fea16c217 100644 --- a/docs/dev/tools/cli.md +++ b/docs/dev/tools/cli.md @@ -1228,8 +1228,15 @@ viam machines part restart --machine=123 --part=456 | `--location` | Location name or ID that the machine belongs to or to list machines in | `list`, `status`, `logs`, `part` | **Required** | | `--machine` | Machine name or ID for which the command is being issued | `status`, `logs`, `part`, `part restart` | **Required** | | `--errors` | Boolean, return only errors (default: false) | `logs` | Optional | +| `--levels` | Filter logs by levels (debug, info, warn, error). Accepts multiple inputs in comma-separated list. | `logs` | Optional | | `--part` | Part name or ID for which the command is being issued | `logs`, `part` | Optional | | `--tail` | Tail (stream) logs, boolean(default false) | `part logs` | Optional | +| `--keyword` | Filter logs by keyword. | `logs` | Optional | +| `--start` | Filter logs to include only those after the start time. Time format example: `2025-01-13T21:30:00Z` (ISO-8601 timestamp in RFC3339). | `logs` | Optional | +| `--end` | Filter logs to include only those before the end time. Time format example: `2025-01-13T21:35:00Z` (ISO-8601 timestamp in RFC3339). | `logs` | Optional | +| `--count` | The number of logs to fetch. | `logs` | Optional | +| `--format` | THe file format for the output file. Options: `text` or `json`. | `logs` | Optional | +| `--output` | The path to the output file to store logs in. | `logs` | Optional | | `--stream` | If specified, the interval in which to stream the specified data, for example, 100ms or 1s | `part run` | Optional | | `--data` | Command data for the command being request to run (see [data argument](#using-the---stream-and---data-arguments)) | `part run` | **Required** | | `--machine-id` | The machine to create an API key for | `api-key` | **Required** |