Start HTB Machine
htb_machine_startStart or spawn a Hack The Box machine by ID or name, retrying full spawn capacity and waiting for its IP. Handles active-machine conflicts so agents can launch labs.
Instructions
Start (spawn) a machine by id or name. mode 'auto' (default) tries play then falls back to spawn. With wait=true (default) the CLI retries while spawn capacity is full, then waits for the IP — this can take several minutes at peak times; the response contains {id, name, ip, spawn}. Only one machine can be active at a time: a conflict error names the blocker, stop it (with the user's consent) and retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Start mode (default auto: play, then spawn) | |
| wait | No | Retry a full spawn server and wait for the machine IP (default true) | |
| target | Yes | Machine id or name to start | |
| interval | No | Seconds between retries/polls (default 15) | |
| retryFor | No | Seconds to keep retrying a full spawn server (default 600) |