docs: give each dl and serve flag and the error envelope one owner page and tighten the cli-reference test

This commit is contained in:
imSp4rky
2026-12-04 20:13:12 -07:00
parent 87b58190ea
commit f10b8dcf99
16 changed files with 90 additions and 181 deletions
+14 -11
View File
@@ -156,16 +156,17 @@ unshackle honours the special language tokens `orig`, `all`, and `best` everywhe
Keep only certain track types, or skip certain track types.
| Include-only | Skip |
|---|---|
| `-V`, `--video-only` | `-nv`, `--no-video` |
| `-A`, `--audio-only` | `-na`, `--no-audio` |
| `-S`, `--subs-only` | `-ns`, `--no-subs` |
| `-C`, `--chapters-only` | `-nc`, `--no-chapters` |
| | `-nt`, `--no-attachments` (cover art, subtitle fonts, and files the service attaches) |
| Flag | Description |
|---|---|
| `-V`, `--video-only` | Keep only the video tracks. |
| `-A`, `--audio-only` | Keep only the audio tracks. |
| `-S`, `--subs-only` | Keep only the subtitle tracks. |
| `-C`, `--chapters-only` | Keep only the chapters. |
| `-nv`, `--no-video` | Skip the video tracks. |
| `-na`, `--no-audio` | Skip the audio tracks. |
| `-ns`, `--no-subs` | Skip the subtitle tracks. |
| `-nc`, `--no-chapters` | Skip the chapters. |
| `-nt`, `--no-attachments` | Skip the attachments: cover art, subtitle fonts, and files the service attaches. |
| `-ad`, `--audio-description` | Include descriptive (audio-description) tracks. Without it, unshackle drops them. |
| `-ado`, `--audio-description-only` | Keep only descriptive (audio-description) tracks; drop the standard audio. Does not need `-ad`. |
| `--skip-subtitle-errors` | Skip a failed subtitle instead of aborting the title. Video/audio failures remain fatal. |
@@ -588,16 +589,18 @@ unshackle serve [OPTIONS]
| Option | Default | Description |
|---|---|---|
| `-h`, `--host` | `127.0.0.1` | Host to serve from. |
| `-h`, `--host` | `127.0.0.1` | Host to serve from. `0.0.0.0` accepts connections from other machines. |
| `-p`, `--port` | `8786` | Port to serve from. |
| `--caddy` | off | Also serve through Caddy (requires the `caddy` binary and a `Caddyfile`). |
| `--caddy` | off | Also serve through Caddy as a reverse proxy, with the `Caddyfile` in your user config directory. Needs the `caddy` binary. |
| `--api-only` | off | Serve only the REST API, not the CDM endpoints. Incompatible with `--no-widevine`/`--no-playready`. |
| `--cdm-only` | off | Serve only the Widevine/PlayReady CDM endpoints, plus `/api/health` and the dashboard: no REST API, no remote sessions and no Swagger UI. Incompatible with `--api-only` and `--remote-only`. |
| `--no-widevine` | off | Disable the Widevine CDM endpoints. |
| `--no-playready` | off | Disable the PlayReady CDM endpoints. |
| `--no-key` | off | Disable API-key authentication (allows all requests). |
| `--debug-api` | off | Include tracebacks/stderr in API error responses. |
| `--debug` | off | Enable debug logging for API operations. |
| `--remote-only` | off | Expose only the remote session routes: `/api/health`, `/api/services`, `/api/search`, `/api/session/*`, `/api/tunnel` and `/api/tunnel/check`, and the dashboard routes when `serve.dashboard.key` is set. Implies `--api-only`. |
| `--remote-only` | off | Expose only the [remote session routes](../dev/rest-api/remote-sessions.md#routes) and the dashboard routes when `serve.dashboard.key` is set. Implies `--api-only`. |
| `-q`, `--quiet` | off | Headless mode: no banner and no Rich output, plain log lines on stderr. With `--debug`, also writes the log to a file in `directories.logs`. |
WVD files in the WVDs directory and PRD files in the PRDs directory are auto-loaded. The REST API lives under `http://<host>:<port>/api/`, with Swagger UI at `/api/docs/` and a health check at `/api/health`.