> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kombify.io/llms.txt
> Use this file to discover all available pages before exploring further.

# homelab api discovery

> Generated reference for the homelab api discovery commands

> [!NOTE]
>
> Generated from the Homelab v0.49.2 release (source `2614eaba28d8`). For an installed version, `homelab api <command> --help` is authoritative.

## homelab api discovery cache clear

Clear discovery cache (admin only).

```bash theme={null}
homelab api discovery cache clear [flags]
```

> [!WARNING]
>
> Requires confirmation: This operation discards every cached discovery result; the next discovery rescans the network. Pass `--yes` or answer the prompt; a non-interactive run without `--yes` stops before any request with exit code 9.

| | |
| - | - |
| HTTP | `DELETE /api/v1/discovery/cache` |
| Changes state | Yes |
| MCP tool | `clear_discovery_cache` |

## homelab api discovery devices get

Get caller-owned discovered device.

```bash theme={null}
homelab api discovery devices get <id> [flags]
```

| | |
| - | - |
| HTTP | `GET /api/v1/discovery/devices/{id}` |
| Changes state | No |
| MCP tool | `get_device` |

| Argument | Type | Description |
| - | - | - |
| `<id>` | string | **Required.** Resource ID. |

## homelab api discovery devices list

List caller-owned discovered devices.

Returns only devices produced by scans owned by the authenticated caller.

```bash theme={null}
homelab api discovery devices list [flags]
```

| | |
| - | - |
| HTTP | `GET /api/v1/discovery/devices` |
| Changes state | No |
| MCP tool | `list_devices` |

## homelab api discovery devices probe

Deep probe a caller-owned device.

Logs in to the device over SSH with the login held in the Wallet item `ssh_wallet_item_id` (a kombify Wallet node access item assigned to Homelab and bound to this IP or to no host, or an SSH key or password item of the built-in wallet whose URL names this IP) and reads its system facts. The login is resolved inside Homelab for this probe only and never answered. This contract accepts no password or private key. Non-admin callers may only probe IPs from their own discovery results; admins may probe arbitrary IPs. Local control planes only (409 `lan_executor_required` on a hosted one).

```bash theme={null}
homelab api discovery devices probe [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/discovery/probe` |
| Changes state | Yes |
| MCP tool | `probe_discovered_device` |

| Argument | Type | Description |
| - | - | - |
| `--ip` | string | **Required.** |
| `--ssh-port` | integer | Default `22`. |
| `--ssh-user` | string | **Required.** |
| `--ssh-wallet-item-id` | string | **Required.** Wallet item holding the SSH key or password. |
| `--timeout-seconds` | integer | Default `30`. |
| `--body` | json | JSON request body (`application/json`) as a literal, `@path` or `-` for stdin. |

## homelab api discovery networks

Get local network interfaces.

```bash theme={null}
homelab api discovery networks [flags]
```

| | |
| - | - |
| HTTP | `GET /api/v1/discovery/networks` |
| Changes state | No |
| MCP tool | `get_networks` |

## homelab api discovery scans cancel

Cancel running scan.

```bash theme={null}
homelab api discovery scans cancel <id> [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/discovery/scan/{id}/cancel` |
| Changes state | Yes |
| MCP tool | `cancel_scan` |

| Argument | Type | Description |
| - | - | - |
| `<id>` | string | **Required.** Resource ID. |

## homelab api discovery scans enrich

Enrich scan results with additional data.

```bash theme={null}
homelab api discovery scans enrich <id> [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/discovery/scan/{id}/enrich` |
| Changes state | Yes |
| MCP tool | `enrich_scan` |

| Argument | Type | Description |
| - | - | - |
| `<id>` | string | **Required.** Resource ID. |

## homelab api discovery scans get

Get scan status and results.

```bash theme={null}
homelab api discovery scans get <id> [flags]
```

| | |
| - | - |
| HTTP | `GET /api/v1/discovery/scan/{id}` |
| Changes state | No |
| MCP tool | `get_scan` |

| Argument | Type | Description |
| - | - | - |
| `<id>` | string | **Required.** Resource ID. |

## homelab api discovery scans start

Start network scan (async).

```bash theme={null}
homelab api discovery scans start [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/discovery/scan` |
| Changes state | Yes |
| MCP tool | `start_scan` |

| Argument | Type | Description |
| - | - | - |
| `--exclude-ips` | string\[] | — |
| `--max-concurrent` | integer | Default `50`. |
| `--profile` | string | One of `passive`, `active`. Default `"passive"`. |
| `--subnet` | string | — |
| `--target-ips` | string\[] | — |
| `--timeout-seconds` | integer | Default `30`. |
| `--body` | json | JSON request body (`application/json`) as a literal, `@path` or `-` for stdin. |

## homelab api discovery stats

Get discovery statistics (admin only).

```bash theme={null}
homelab api discovery stats [flags]
```

| | |
| - | - |
| HTTP | `GET /api/v1/discovery/stats` |
| Changes state | No |
| MCP tool | `get_discovery_stats` |

## homelab api discovery test-ssh

Test SSH connectivity to a device.

Opens one SSH connection with the login held in the Wallet item `ssh_wallet_item_id` (its key when it holds one, otherwise its password; a built-in wallet item must name this IP as its URL), resolved inside Homelab and never answered; nothing is stored. This contract accepts no password. A failed connection answers 200 with `success: false`. Non-admin callers may only test IPs from their own discovery results; admins may test arbitrary IPs. Local control planes only.

```bash theme={null}
homelab api discovery test-ssh [flags]
```

| | |
| - | - |
| HTTP | `POST /api/v1/discovery/test-ssh` |
| Changes state | Yes |
| MCP tool | `test_discovered_device_ssh` |

| Argument | Type | Description |
| - | - | - |
| `--ip` | string | **Required.** |
| `--port` | integer | Default `22`. |
| `--ssh-wallet-item-id` | string | **Required.** Wallet item holding the SSH key or password. |
| `--user` | string | **Required.** |
| `--body` | json | JSON request body (`application/json`) as a literal, `@path` or `-` for stdin. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.