You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/packages/cli.mdx
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,14 +35,15 @@ npx hyperframes <command>
35
35
36
36
## Agent-Friendly by Default
37
37
38
-
The CLI is **non-interactive by default** — designed so AI agents (Claude Code, Gemini CLI, Codex, Cursor) can drive every command without prompts or interactive UI.
38
+
The CLI is **agent-friendly by default**: commands support explicit flags and parseable output so automation can run reliably.
39
39
40
-
-All inputs are passed via flags (e.g., `--example`, `--video`, `--output`)
40
+
-Inputs can be passed via flags (for example, `--example`, `--video`, `--output`)
41
41
- Missing required flags fail fast with a clear error and usage example
42
42
- Output is plain text suitable for parsing
43
-
- No interactive prompts, spinners, or selection menus
44
43
45
-
Add `--human-friendly` to any command to enable the interactive terminal UI with prompts, spinners, and selection menus.
44
+
Interactivity is command-specific. For example, `init` uses prompts on TTY by default; pass `--non-interactive` to force non-interactive mode.
45
+
46
+
`--human-friendly` is also command-specific (for example, `catalog`). It is not a global flag on every command.
46
47
47
48
<Tabs>
48
49
<Tabtitle="Agent mode (default)">
@@ -55,9 +56,11 @@ Add `--human-friendly` to any command to enable the interactive terminal UI with
55
56
</Tab>
56
57
<Tabtitle="Human mode">
57
58
```bash
58
-
# Interactive prompts, spinners, and selection menus
59
-
npx hyperframes init --human-friendly
60
-
npx hyperframes upgrade
59
+
# Command-specific interactive flow
60
+
npx hyperframes init my-video
61
+
62
+
# Interactive picker supported by catalog
63
+
npx hyperframes catalog --human-friendly
61
64
```
62
65
</Tab>
63
66
</Tabs>
@@ -155,13 +158,13 @@ This is suppressed in CI environments, non-TTY shells, and when `HYPERFRAMES_NO_
|`--model`| Whisper model for transcription (e.g. `small.en`, `medium.en`, `large-v3`) |
172
175
|`--language`| Language code for transcription (e.g. `en`, `es`, `ja`). Filters non-target speech. |
173
-
|`--human-friendly`| Enable interactive terminal UI with prompts |
174
176
175
177
| Example | Description |
176
178
|----------|-------------|
@@ -180,7 +182,7 @@ This is suppressed in CI environments, non-TTY shells, and when `HYPERFRAMES_NO_
180
182
|`swiss-grid`| Structured grid layout |
181
183
|`vignelli`| Bold typography with red accents |
182
184
183
-
In default (agent) mode, `--example` is required — the CLI errors with a usage example if missing. In `--human-friendly` mode, you choose interactively. When `--video` or `--audio` is provided, the CLI automatically transcribes the audio with Whisper and patches captions into the composition (use `--skip-transcribe` to disable).
185
+
In non-interactive mode, `--example` is required — the CLI errors with a usage example if missing. In interactive mode (default on TTY), you choose the example interactively. Pass `--non-interactive` to require `--example` via flag. When `--video` or `--audio` is provided, the CLI automatically transcribes the audio with Whisper and patches captions into the composition (use `--skip-transcribe` to disable).
184
186
185
187
`--tailwind` injects the pinned Tailwind v4 browser runtime into scaffolded HTML and exposes a `window.__tailwindReady` promise that renders wait on before capturing frame 0. Use the `/tailwind` skill when editing these projects so agents follow v4 CSS-first patterns instead of v3 `tailwind.config.js` and `@tailwind` directive patterns. The browser runtime is still intended for scaffolded projects and quick iteration; for fully offline or locked-down production renders, compile Tailwind to CSS and include the stylesheet directly.
0 commit comments