docs(cli): make cli-reference the one description of each dl flag and downloading.md the task guide

This commit is contained in:
imSp4rky
2026-12-04 18:23:52 -07:00
parent 2f8e2aba37
commit b96c2a725e
12 changed files with 271 additions and 445 deletions
+126 -126
View File
@@ -52,20 +52,21 @@ unshackle dl [OPTIONS] SERVICE [SERVICE ARGS...]
- `SERVICE`: a service tag (for example `EXAMPLE1` or `EXAMPLE2`). Tags are case-insensitive and honour each service's aliases (`example+`, `EXAMPLE2`, and the other alias forms all give the same tag).
- `SERVICE ARGS`: the title, URL, or ID, plus any service-specific options. These belong to the service, not to `dl`.
!!! example "Typical downloads"
```shell
# Best available 1080p SDR of a title
unshackle dl -q 1080 EXAMPLE 81234567
```shell title="Typical downloads"
# Best available 1080p SDR of a title
unshackle dl -q 1080 EXAMPLE 81234567
# 4K HDR10, English audio + subs, from a URL
unshackle dl -q 2160 -r HDR10 -l en EXAMPLE "https://www.example.com/..."
# 4K HDR10, English audio + subs, from a URL
unshackle dl -q 2160 -r HDR10 -l en EXAMPLE "https://www.example.com/..."
# A season range, HEVC video, EC3 audio
unshackle dl -w S01-S03 -v H.265 -a EC3 SERVICE TITLE-ID
```
# A season range, HEVC video, EC3 audio
unshackle dl -w S01-S03 -v H.265 -a EC3 SERVICE TITLE-ID
```
!!! note "Config-driven defaults"
You can give any `dl` flag a default under the `dl:` section of `unshackle.yaml`, and per-service under `services.<TAG>.dl`. Explicit command-line values (and environment values) always win over both. Service defaults only fill in options you did not set. See the [configuration file](../getting-started/configuration-file.md) guide.
[Downloading](downloading.md) shows how these flags work together for common tasks.
!!! note "Defaults from the configuration file"
You can give any `dl` flag a default in the [`dl`](../reference/configuration/download.md#dl) block of `unshackle.yaml`, and for one service under `services.<TAG>.dl`. A REST API download job takes most of these options: [`POST /api/download`](../dev/rest-api/endpoints.md#post-apidownload) lists them.
### Quality, codec, bitrate & range
@@ -73,23 +74,43 @@ unshackle dl [OPTIONS] SERVICE [SERVICE ARGS...]
|---|---|---|
| `-p`, `--profile` | - | Profile for credentials and cookies. |
| `-q`, `--quality` | best | Resolution(s), comma-separated, e.g. `1080,720`. `-q 1080` also matches anamorphic tracks by 16:9 canvas, and padded encodes by standard resolution. |
| `-v`, `--vcodec` | any | Video codec(s). Accepts names or values: `AVC`/`H.264`/`H264`, `HEVC`/`H.265`/`H265`, `VVC`/`H.266`/`H266`, `VC1`/`VC-1`, `VP8`, `VP9`, `AV1`. |
| `-a`, `--acodec` | any | Audio codec(s), comma-separated. Accepts `AAC`, `AC3`/`DD`, `EC3`/`DD+`/`eac3`/`ddp`, `AC4`/`AC-4`, `OPUS`, `OGG`/`VORB`/`vorbis`, `DTS`, `DTSX`/`DTS-X`, `ALAC`, `FLAC`, `MP3`. |
| `-v`, `--vcodec` | any | Video codec(s). Accepts names or values: `AVC`/`H.264`/`H264`, `HEVC`/`H.265`/`H265`, `VVC`/`H.266`/`H266`, `VC1`/`VC-1`, `VP8`, `VP9`, `AV1`, `LCEVC`. unshackle selects an LCEVC track only when you name it, because it cannot play without its base video track. |
| `-a`, `--acodec` | any | Audio codec(s), comma-separated. Accepts a name or a value from [Audio codec values](#audio-codec-values), and the aliases `eac3` and `ddp` (`EC3`) and `vorbis` (`OGG`). |
| `-vb`, `--vbitrate` | highest | Exact video bitrate in kbps. |
| `-ab`, `--abitrate` | highest | Exact audio bitrate in kbps. |
| `-vb-range`, `--vbitrate-range` | - | Video bitrate range in kbps, e.g. `6000-7000`; picks highest within. Mutually exclusive with `--vbitrate`. |
| `-ab-range`, `--abitrate-range` | - | Audio bitrate range in kbps, e.g. `128-256`. Mutually exclusive with `--abitrate`. |
| `-r`, `--range` | `SDR` | Colour range(s): `SDR`, `HLG`, `HDR10`, `HDR10P` (HDR10+), `VIVID` (HDR Vivid), `DV`, `HYBRID`. |
| `-r`, `--range` | `SDR` | Colour range(s): `SDR`, `HLG`, `HDR10`, `HDR10P` (HDR10+), `VIVID` (HDR Vivid), `DV`, `HYBRID`. `HDR10+` and `"HDR Vivid"` also work. |
| `--generate-dv` | off | With `-r HYBRID`, make Dolby Vision from the HDR10+ metadata or the decoded video when a title has no Dolby Vision track. With `-r HDR10` or `-r HDR10P`, make it for that base and ignore a Dolby Vision track. See [Dolby Vision without a DV track](downloading.md#dolby-vision-without-a-dv-track). |
| `-c`, `--channels` | - | Audio channels; matches sub-layouts (5.1 ≈ 6.0). |
| `-c`, `--channels` | - | Audio channels, e.g. `5.1` or `2.0`; matches sub-layouts (5.1 ≈ 6.0). An immersive layout such as `5.1.4` matches its total number of channels (`-c 10`). |
| `-naa`, `--noatmos` | off | Exclude Dolby Atmos audio tracks. |
| `--worst` | off | Pick the lowest-bitrate video at each requested resolution, or at the lowest resolution if none is set. |
| `--best-available`, `--warn-only` | off | Warn and continue when a requested resolution, range, video language, or audio language is absent, instead of failing. With `--all-drm`, also when one DRM system does not license. |
| `-rvb`, `--real-video-bitrate` | off | Probe real media size for true video bitrates, overriding the manifest. |
| `-rab`, `--real-audio-bitrate` | off | Same for audio (slower). |
#### Audio codec values
| Name | Value | Codec |
| --- | --- | --- |
| `AAC` | `AAC` | Advanced Audio Coding |
| `AC3` | `DD` | Dolby Digital |
| `EC3` | `DD+` | Dolby Digital Plus |
| `AC4` | `AC-4` | Dolby AC-4 |
| `OPUS` | `OPUS` | Opus |
| `OGG` | `VORB` | Vorbis |
| `DTS` | `DTS` | DTS |
| `DTSX` | `DTS-X` | DTS:X Profile 2 (DTS-UHD) |
| `DTSHD` | `DTS-HD` | DTS-HD High Resolution, Master Audio and Express |
| `MPEGH` | `MPEG-H` | MPEG-H 3D Audio |
| `AV3A` | `Audio Vivid` | Audio Vivid (AVS3-P3) |
| `ALAC` | `ALAC` | Apple Lossless |
| `FLAC` | `FLAC` | FLAC |
| `MP3` | `MP3` | MPEG-1 Audio Layer III |
| `PCM` | `PCM` | Pulse-code modulation |
!!! note "`HYBRID` range"
`-r HYBRID` fetches both an HDR10/HDR10+/HDR Vivid base and Dolby Vision and merges them with `dovi_tool`. It requires the `dovi_tool` binary on your `PATH`.
`-r HYBRID` fetches both an HDR10/HDR10+/HDR Vivid base and Dolby Vision and merges them with `dovi_tool`. See [Colour range](downloading.md#colour-range) for what it needs.
### Language & subtitles
@@ -105,11 +126,11 @@ unshackle dl [OPTIONS] SERVICE [SERVICE ARGS...]
| `--skip-missing` | off | Skip a title that misses a required language or track, and continue with the next title. A run with one title, or a run that skips every title, still fails. |
| `--skip-existing` | off | Skip a resolved video variant recorded in the completion archive. Does not verify that files still exist. |
| `--force` | off | Bypass the completion archive check for this run; does not change overwrite behaviour. |
| `-fs`, `--forced-subs` | off | Include forced subtitle tracks. |
| `-fs`, `--forced-subs` | off | Include forced subtitle tracks. Without it, unshackle drops them. |
| `-fso`, `--forced-subs-only` | off | Keep only forced subtitle tracks; drop the other subtitles. Implies `-fs`. |
| `-fsl`, `--forced-s-lang` | none | Language(s) wanted for forced subtitles; implies `-fs`. A `-` prefix excludes. |
| `-fsl`, `--forced-s-lang` | none | Language(s) wanted for forced subtitles; implies `-fs`. A `-` prefix excludes. Independent of `--s-lang`: `-sl all -fsl en` keeps every full subtitle and only the English forced track. |
| `--exact-lang` | off | A tag without a region selects only the variant it means and never falls back to another: `-l es` does not select `es-419`. A tag with a region, such as `es-419`, is always exact. Applies to selection and to sort order. |
| `--sub-format` | - | Output subtitle format (`SRT`/`srt`, `VTT`/`webvtt`, `ASS`/`ssa`, `TTML`, `SMI`, ...), or `original` to keep the source format. |
| `--sub-format` | - | Output subtitle format, converted only when necessary: a subtitle codec name or value, case-insensitive (`SRT`, `VTT`/`webvtt`, `ASS`, `SSA`, `TTML`, `SMI`, ...), or `original` to keep the source format. |
| `--sub-font` | - | Font for subtitles converted to ASS, with the rest of the look from `subtitle.ass_style`. Implies `--sub-format ASS` and overrides a `sub_format` from the configuration file; a typed `--sub-format` of another format is an error. |
!!! tip "These flags select languages, they do not order them"
@@ -126,10 +147,10 @@ unshackle honours the special language tokens `orig`, `all`, and `best` everywhe
|---|---|
| `-w`, `--wanted` | Wanted episodes, e.g. `S01-S05,S07`, `S01E01-S02E03`. Supports exclusions with a leading `-` (e.g. `-S03`). For a [split episode](downloading.md#split-episodes), `.N` picks one part (`S01E01.2`), a range must stay inside the episode (`S01E01.1-S01E01.3`), and `S01E01` on its own takes every part. For a [dated episode](downloading.md#daily-and-date-based-content), a token can also be an ISO air date (`2026-08-11`) or a date range with a colon (`2026-08-01:2026-08-31`). For a [music release](downloading.md#music-tracks), a token is a number of the track list (`1-5`, `1,3,7`), or `{disc}x{track}` (`2x3`) when the release has more than one disc. |
| `--select-titles` | Interactively select what to download: episodes of a series, or films when a title has more than one. **Cannot combine with `-w`.** |
| `--latest-episode` | Download only the single most recent episode. |
| `--latest-episodes N` | Download only the N most recent episodes. |
| `--max-downloads N` | Stop after N titles have downloaded. A skipped title, or a title already in the completion archive, does not count. |
| `--list-titles` | List titles only; do not download. |
| `--latest-episode` | Download only the single most recent episode. `-w` has no effect with it. |
| `--latest-episodes N` | Download only the N most recent episodes, which can come from more than one season. A split episode counts as one episode, and all its parts download. `-w` has no effect with it. |
| `--max-downloads N` | Stop after N titles have downloaded. A skipped title, or a title already in the completion archive, does not count. With `--skip-dl` or `--no-mux`, a title counts when its run completes. Each part of a split episode counts as one title. unshackle does not open the titles after the limit. |
| `--list-titles` | List every title the service returned, then stop. `-w`, `--latest-episode` and `--latest-episodes` do not apply to this list. |
### Track-type inclusion / exclusion
@@ -145,7 +166,7 @@ Keep only certain track types, or skip certain track types.
| Flag | Description |
|---|---|
| `-ad`, `--audio-description` | Include descriptive (audio-description) tracks. |
| `-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. |
@@ -156,7 +177,7 @@ Keep only certain track types, or skip certain track types.
| `--split-audio` | Write a separate output file per audio codec instead of merging. Defaults to config `muxing.merge_audio`. |
| `--merge-video` | Mux video tracks that share a height, range, and codec into one file, so only language varies inside a file. Defaults to config `muxing.merge_video`. |
| `-o`, `--output` | Override the output directory for this run. |
| `--no-folder` | Disable folder creation for TV shows. |
| `--no-folder` | Write the files directly in the output directory, with no folder for the title. Applies to every kind of title. |
| `--no-source` | Remove the source tag from the filename/path. |
| `--no-mux` | Do not mux; keep individual track files. |
| `--sample` | Download a short sample and write it with a `SAMPLE` tag on the filename in a `Sample` folder inside the output folder. Bare `--sample` = 60 seconds from 2 minutes in; `--sample 0-60` = a custom window in seconds. |
@@ -176,37 +197,26 @@ Keep only certain track types, or skip certain track types.
| `--anilist` | AniList ID (integer), e.g. `--anilist 21`. A MyAnimeList ID is accepted as `mal:12345` and resolved to the AniList entry. Used for the tags. Skips the title search. `--enrich` reads it too. Needs no API key. |
| `--enrich` | Overwrite show title, year and original language with the external source's. **Requires** one of `--tmdb`, `--imdb`, `--tvdb`, or `--anilist`. |
| `--daily` | Treat the title as daily/date-based content and fill missing episode air dates from TVDB. The fill needs `--enrich` and a TVDB ID. See [Daily and date-based content](downloading.md#daily-and-date-based-content). |
| `--tvdb-order` | Renumber episodes to a TVDB season order: `official` (aired), `dvd`, `absolute`, `alternate`, or `regional`. Needs `tvdb_api_key`. |
| `--tvdb-order` | Renumber episodes to a TVDB season order: `official` (aired), `dvd`, `absolute`, `alternate`, or `regional`. Needs `tvdb_api_key`. See [Episode ordering](downloading.md#episode-ordering). |
| `-ce` / `--continuous-episodes` | Number each season on from the season before it. After a season one of four episodes, season two starts at `S02E05`. Season 0 and episode 0 keep their numbers. |
!!! note "One ID at a time"
You cannot combine `--tmdb`, `--imdb` and `--tvdb`. Give one and unshackle finds the
others from it, and writes all three to the tags. `--anilist` is outside that rule and pairs
with one of them, which is how you set the western ID of an anime title yourself.
An ID with no metadata provider that can find it, such as `--tmdb` with no `tmdb_api_key`,
fails before the download starts. `--anilist` needs no API key, so it never fails this check.
#### Episode ordering
A service does not always number a series the way TVDB's aired order does. Some services use
TVDB's `alternate` (Streaming) order for Futurama, for example. `--tvdb-order` works out which
order the service used, then renumbers the episodes into the order you asked for.
!!! note "Orders that do not cover the whole series"
An order can ignore episodes the service carries. TVDB's `dvd` order for Futurama leaves
out the four movies. Those episodes keep their original numbering. If that would give two
episodes the same season/episode slot, and so the same filename, unshackle logs an error
and keeps the service's numbering unchanged. Pick an order that covers the whole series.
An ID with no metadata provider that can find it, such as `--tmdb` with no `tmdb_api_key`
or an ID whose providers `metadata_providers` leaves out, fails before the download starts. `--anilist` needs no API key, so it never fails this check.
### DRM, keys & decryption
| Flag | Description |
|---|---|
| `--cdm-only` / `--vaults-only` | Use only the CDM, or only Key Vaults, for key acquisition. |
| `--cdm <name>` | Use the named CDM device from the `cdm` config mapping for this run, ignoring the service/default mapping. Over `--remote`, that device licenses the remote session, not the server CDM. |
| `--cdm-only` | Read no key vault, and get each content key that the run does not already hold from a licence. Over `--remote`, your own CDM licenses each track, and the run uses neither the server CDM nor the server vault. A run with no local CDM fails, and so does a remote session on the server's device. |
| `--vaults-only` | Get no licence. A content key that no key vault, export or earlier track gives fails the title. With both flags, the last one wins. |
| `--cdm <name>` | Use the named CDM device for this run, and ignore the `cdm` config mapping, its quality and Widevine/PlayReady entries included. Over `--remote`, that device licenses the remote session, not the server CDM. |
| `--skip-dl` | Skip the download but still retrieve keys. |
| `--all-drm` | License each track with both Widevine and PlayReady. Needs a CDM for each DRM system. Key Vaults are read first; `--cdm-only` sends a challenge for each system. Not for use with `--cdm`. |
| `--export` | Export track info and keys to a `mediaexport` JSON file in the exports directory. |
| `--export` | Write an [export](downloading.md#keys-vaults-and-export) of each title's tracks, DRM init data and content keys to the exports directory. |
### Network & proxy
@@ -227,14 +237,14 @@ order the service used, then renumbers the episodes into the order you asked for
|---|---|---|
| `--workers` | downloader default | Per-track download threads. |
| `--adaptive-workers` | off | Scale per-track segment workers dynamically (up to the `--workers` cap) based on measured CDN throughput and errors. |
| `--download-processes` | `1` | Split large segment batches (24+) across this many download processes to exceed the single-process throughput cap on multi-gigabit connections. Ignored while a speed limit is set: the cap is one shared budget, which extra processes cannot share, so the download stays in a single process. Also ignored when the service HTTP session carries state a child process cannot rebuild, such as a custom TLS adapter. |
| `--download-processes` | `1` | Split a batch of 24 or more segments across this many download processes, which share the `--workers` threads. One process tops out at about 1.3 Gb/s; `2` reaches 2.5GbE line rate on a fast CDN. Ignored while a speed limit is set (`--speed-limit`, or the share of `global_speed_limit` that `serve` gives a job): the limit is one budget for every thread of the process, which child processes cannot share. Also ignored when the service HTTP session carries state a child process cannot rebuild, such as a custom TLS adapter. |
| `--continue-downloads` | off | Keep completed segment files across runs and resume a previously failed download. One-off enable of the [`continue_downloads`](../reference/configuration/download.md#continue_downloads) config option. |
| `--downloads` | `1` | Number of tracks downloaded concurrently. |
| `--speed-limit` | unlimited | Cap total download speed across all threads and tracks, e.g. `500k`, `5M`, `1.5G` or plain bytes/sec. Values are bytes, not bits (`5M` = 5.0 MB/s). `off` disables a configured limit. |
| `--no-cache` | off | Bypass the title cache. |
| `--reset-cache` | off | Clear the title cache. |
| `--list` | off | List available/would-be-downloaded tracks; do not download. |
| `--slow` | - | Inter-title delay. Bare `--slow` = 60-120s; `--slow 20-40` = custom range (minimum 20s). |
| `--list` | off | List the tracks of each title, then stop before track selection. |
| `--slow` | - | Delay between titles. Bare `--slow` = 60-120 s; `--slow MIN-MAX` (e.g. `--slow 20-40`) = a custom range in seconds, with MIN at least 5 and not more than MAX. |
!!! warning "Some flags cannot be combined"
`--select-titles` and `--wanted` are mutually exclusive. `--vbitrate` and `--vbitrate-range` (and the audio equivalents) are mutually exclusive.
@@ -266,13 +276,12 @@ unshackle logs in to the service before the search. A service that declares a se
| `--local` | Search with the local service code, also when the config sets `remote: true` for the service. |
| `--server` | Name a remote server from the `remote_services` config. |
!!! example
```shell
unshackle search EXAMPLE "My Show"
unshackle search -p myprofile EXAMPLE "Another Show"
unshackle search --proxy nordvpn:ca SERVICE "query"
unshackle search --remote --server my_server SERVICE "query"
```
```shell title="search examples"
unshackle search EXAMPLE "My Show"
unshackle search -p myprofile EXAMPLE "Another Show"
unshackle search --proxy nordvpn:ca SERVICE "query"
unshackle search --remote --server my_server SERVICE "query"
```
---
@@ -286,13 +295,12 @@ unshackle import EXPORT_FILE [DL_ARGS...]
unshackle forwards any `dl` options after the file verbatim, so you can override quality, range, proxy, and so on. The import selects tracks with the `dl` defaults, not with the selection of the export. Give the selection options of the export again, for example `-r HYBRID` for an export of HDR tracks.
!!! example
```shell
unshackle import export.json
unshackle import export.json -r HDR10 --proxy US
```
```shell title="import examples"
unshackle import export.json
unshackle import export.json -r HDR10 --proxy US
```
The export file can be a `mediaexport` file from `dl --export`, an export from an older version of unshackle, or an export from unidl. The file must name the service it came from.
The export file can be an export from `dl --export`, an export from an older version of unshackle, or an export from unidl. The file must name the service it came from.
---
@@ -325,11 +333,10 @@ unshackle setup
The command takes no options and asks its questions at the prompt. It shows the missing [external tools](../getting-started/installation.md#external-tools-on-your-path) and downloads the ones you accept. It puts them in a `binaries` folder, in the package folder of a git clone or in your user data directory for a `uv` tool install. If no `unshackle.yaml` exists, it writes a first one: inside the clone, or to your user config directory for a `uv` tool install. It then makes the data folders and imports `.wvd` and `.prd` devices, one file or folder per answer, until you give an empty answer. It ends with a summary of the tools, the path of a config that it wrote, and a pointer to `env check`. You can run it again: it skips the tools it finds and never overwrites a config. [Installation](../getting-started/installation.md#what-unshackle-setup-does) gives the full steps and where each file goes.
!!! example
```shell
uv run unshackle setup # from a git clone
unshackle setup # from a uv tool install
```
```shell title="setup examples"
uv run unshackle setup # from a git clone
unshackle setup # from a uv tool install
```
---
@@ -351,15 +358,14 @@ unshackle cfg [KEY] [VALUE] [OPTIONS]
!!! warning "Comments are stripped"
Writing a value through `cfg` rewrites the configuration file and **removes all comments** from it. If your config relies on comments, edit it by hand instead. Setting a value and using `--unset` together is an error. If a config key is set twice in the same block, every command warns with the line numbers of the two copies and uses the later copy. `cfg` stops without a change.
!!! example
```shell
unshackle cfg --list # print entire config
unshackle cfg serve.api_secret # read a nested key
unshackle cfg tag MYGROUP # set a string
unshackle cfg update_checks false # literal → boolean False
unshackle cfg directories.downloads /mnt/dl # set a nested path
unshackle cfg tag --unset # remove a key
```
```shell title="cfg examples"
unshackle cfg --list # print entire config
unshackle cfg serve.api_secret # read a nested key
unshackle cfg tag MYGROUP # set a string
unshackle cfg update_checks false # literal → boolean False
unshackle cfg directories.downloads /mnt/dl # set a nested path
unshackle cfg tag --unset # remove a key
```
---
@@ -419,21 +425,20 @@ Clear an environment directory. unshackle empties the directory, makes it again,
| `unshackle env clear cache [SERVICE]` | Clear the cache directory, or only one service's cache subdirectory. |
| `unshackle env clear temp` | Clear the temp directory. |
!!! example
```shell
unshackle env check
unshackle env info
unshackle env theme
unshackle env clear cache
unshackle env clear cache EXAMPLE # one service only
unshackle env clear temp
```
```shell title="env examples"
unshackle env check
unshackle env info
unshackle env theme
unshackle env clear cache
unshackle env clear cache EXAMPLE # one service only
unshackle env clear temp
```
---
## `kv`
Manage Key Vaults. You configure vaults under `key_vaults` in `unshackle.yaml`, each with a `name`, a `type` (`sqlite`, `mysql`, `http`, `api`), and type-specific options. unshackle normalises service tags automatically.
Manage Key Vaults. You configure vaults under [`key_vaults`](../reference/configuration/vaults.md) in `unshackle.yaml`. unshackle normalises service tags automatically.
```
unshackle kv COMMAND [ARGS]...
@@ -460,7 +465,7 @@ Add content keys to one or more vaults for a service. `FILE` contains one `KID:K
### `kv search KID`
Find a KID (32 hex characters, no dashes) in the configured vaults and report its content key.
Find a KID (32 hex characters; unshackle removes dashes) in the configured vaults and report its content key.
| Option | Description |
|---|---|
@@ -474,16 +479,15 @@ Find a KID (32 hex characters, no dashes) in the configured vaults and report it
Make service tables on vaults that use tables, for every installed service, where they do not already exist.
!!! example
```shell
unshackle kv copy main backup1 backup2
unshackle kv copy main backup -s EXAMPLE
unshackle kv copy main ~/Downloads/key_store.db -s EXAMPLE
unshackle kv sync main mysql_vault
unshackle kv add keys.txt EXAMPLE main backup
unshackle kv search 0123456789abcdef0123456789abcdef -s EXAMPLE -v main
unshackle kv prepare main mysql_vault
```
```shell title="kv examples"
unshackle kv copy main backup1 backup2
unshackle kv copy main backup -s EXAMPLE
unshackle kv copy main ~/Downloads/key_store.db -s EXAMPLE
unshackle kv sync main mysql_vault
unshackle kv add keys.txt EXAMPLE main backup
unshackle kv search 0123456789abcdef0123456789abcdef -s EXAMPLE -v main
unshackle kv prepare main mysql_vault
```
---
@@ -511,13 +515,12 @@ unshackle wvd COMMAND [ARGS]...
| `-l`, `--level` | `1` | Security level (1-3). |
| `-o`, `--output` | WVDs dir | Output directory. |
!!! example
```shell
unshackle wvd add device.wvd
unshackle wvd parse nexus_6p_1234_l1
unshackle wvd dump device.wvd ./out_dir
unshackle wvd new "Nexus 6P" private_key.pem client_id.bin vmp.bin -t ANDROID -l 3
```
```shell title="wvd examples"
unshackle wvd add device.wvd
unshackle wvd parse nexus_6p_1234_l1
unshackle wvd dump device.wvd ./out_dir
unshackle wvd new "Nexus 6P" private_key.pem client_id.bin vmp.bin -t ANDROID -l 3
```
---
@@ -564,15 +567,14 @@ Write the group key (`zgpriv.dat`) and the group certificate (`bgroupcert.dat`)
Show each certificate of a certificate chain: type, security level, expiry date, name, features and keys. Give `-d` with a `.prd` file, or `-c` with a chain file such as `bgroupcert.dat`.
!!! example
```shell
unshackle prd new ./device_folder/
unshackle prd new zgpriv.dat bgroupcert.dat -o /out/dir
unshackle prd reprovision mydevice.prd
unshackle prd test mydevice.prd -sl 3000 -c aescbc
unshackle prd export mydevice.prd -o ./out_dir
unshackle prd inspect -d mydevice.prd
```
```shell title="prd examples"
unshackle prd new ./device_folder/
unshackle prd new zgpriv.dat bgroupcert.dat -o /out/dir
unshackle prd reprovision mydevice.prd
unshackle prd test mydevice.prd -sl 3000 -c aescbc
unshackle prd export mydevice.prd -o ./out_dir
unshackle prd inspect -d mydevice.prd
```
---
@@ -612,14 +614,13 @@ WVD files in the WVDs directory and PRD files in the PRDs directory are auto-loa
username: user
```
!!! example
```shell
unshackle serve
unshackle serve -h 0.0.0.0 -p 8080
unshackle serve --api-only
unshackle serve --remote-only
unshackle serve --caddy
```
```shell title="serve examples"
unshackle serve
unshackle serve -h 0.0.0.0 -p 8080
unshackle serve --api-only
unshackle serve --remote-only
unshackle serve --caddy
```
---
@@ -666,14 +667,13 @@ Decode an entire video with FFmpeg and report any corruptions or errors. By defa
|---|---|---|
| `-m`, `--map` | `0` | Do a test of specific tracks with FFmpeg's `-map`, for example `0:v:0` or `0:a`. |
!!! example
```shell
unshackle util refresh-services
unshackle util crop video.mkv 2.39:1
unshackle util crop ./season/ 16:9 --pillar -o 10
unshackle util range video.mkv --full
unshackle util test video.mkv -m 0:v:0
```
```shell title="util examples"
unshackle util refresh-services
unshackle util crop video.mkv 2.39:1
unshackle util crop ./season/ 16:9 --pillar -o 10
unshackle util range video.mkv --full
unshackle util test video.mkv -m 0:v:0
```
---