> ## Documentation Index
> Fetch the complete documentation index at: https://vastai-80aa3a82-auto-cli-sdk-preview-pr-398.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# vastai dump-logs

\[Host] Bundle self-test diagnostics for support

## Usage

```bash theme={null}
vastai dump-logs <machine_id> [--instance-id INSTANCE_ID] [--output-dir DIR] [--include-local-host-artifacts]
```

## Arguments

<ParamField path="machine_id" type="string" required>
  Machine ID
</ParamField>

## Options

<ParamField path="--instance-id" type="integer">
  Instance ID to pull Vast instance logs from
</ParamField>

<ParamField path="--output-dir" type="string">
  Directory for the diagnostic bundle (default: /tmp)
</ParamField>

<ParamField path="--include-local-host-artifacts" type="boolean">
  Include local OS/kaalia artifacts; only use when running on the actual Vast host
</ParamField>

## Description

Creates a redacted diagnostic tarball containing CLI-visible self-test
evidence. If --instance-id is provided, the command also pulls container
and daemon logs from the Vast instance logs API.

Local OS/kaalia artifacts are only collected with
\--include-local-host-artifacts. Use that option only when running this
command on the actual host machine; from a laptop, it would collect the
laptop's logs instead.

## Examples

```bash theme={null}
vastai dump-logs 12345 --instance-id 67890
```

## Global Options

The following options are available for all commands:

| Option          | Description                                           |
| --------------- | ----------------------------------------------------- |
| `--url URL`     | Server REST API URL                                   |
| `--retry N`     | Retry limit                                           |
| `--raw`         | Output machine-readable JSON                          |
| `--explain`     | Verbose explanation of API calls                      |
| `--api-key KEY` | API key (defaults to `~/.config/vastai/vast_api_key`) |
