From a7a43cae577f06c042773f37026d0be8e3684c4d Mon Sep 17 00:00:00 2001 From: lukass16 Date: Wed, 24 Jun 2026 16:59:20 -0700 Subject: [PATCH 01/16] fix(cli): make hud init blank write the local scaffold The blank preset downloaded hud-evals/hud-blank (calculator + in-process MCP example) instead of the simple letter-counting scaffold. Mark blank as a local preset so it writes the bundled strawberry scaffold with no network fetch, and document the behavior in the CLI reference. Co-authored-by: Cursor --- docs/v6/reference/cli.mdx | 182 +++++++++++++++++++++++++++++++++++++ hud/cli/init.py | 61 +++++++------ hud/cli/presets.py | 11 ++- hud/cli/tests/test_init.py | 21 +++++ 4 files changed, 243 insertions(+), 32 deletions(-) create mode 100644 docs/v6/reference/cli.mdx diff --git a/docs/v6/reference/cli.mdx b/docs/v6/reference/cli.mdx new file mode 100644 index 00000000..807bd9b6 --- /dev/null +++ b/docs/v6/reference/cli.mdx @@ -0,0 +1,182 @@ +--- +title: "CLI" +description: "The hud command reference across the environment lifecycle." +icon: "terminal" +--- + +Install the CLI with `uv tool install hud-python --python 3.12`. Authenticate once with `hud set HUD_API_KEY=...`. + +## Build & iterate + +### `hud init` + +Scaffold a new environment package in a fresh `` directory. The `blank` template (the default with no preset, and the first option in the interactive picker) writes a minimal local scaffold - `env.py` (environment, templates, capabilities), `tasks.py` (concrete task rows), `Dockerfile.hud`, and `pyproject.toml` - no network, no API key. Every other preset downloads a starter environment from GitHub instead. + +```bash +hud init # pick a template → ./