Skip to content
View .md

Command line (CLI) ​

The azot command lets you download media, manage extensions, sign in to sites, change settings, and run MCP or a Telegram bot from your terminal or scripts.

Running the azot CLI requires Azot Pro. Account commands (login, logout, logs, --help, --version) and testing your own local extension with --extension ./folder stay free on every plan.

Installing the CLI ​

Open Settings > About in the desktop app and turn on Command Line Interface.

  • macOS: creates a symlink at /usr/local/bin/azot (asks for administrator permission if needed).
  • Windows: adds the desktop app's azot launcher folder to your user PATH.
  • Linux (.deb / .rpm): the package already installs /usr/bin/azot automatically.
  • Linux (.AppImage): AppImage paths change on every launch, so install the standalone CLI below instead.

When installed from the desktop app, azot updates automatically alongside the desktop app.

Standalone installation (without the desktop app) ​

Supports Windows (x64), macOS (Apple Silicon), and Linux (x64):

sh
curl -fsSL https://azot.mov/install.sh | sh
powershell
powershell -c "irm azot.mov/install.ps1 | iex"

Run the same command again to update. Set AZOT_VERSION before running the script to install a specific version.

Shared state with the desktop app ​

The CLI and desktop app share the same SQLite settings store, download history, installed extensions, and signed-in site sessions. A download you start in the terminal shows up in the desktop app while it runs, and azot login signs in both the CLI and the desktop app.

Quick start ​

Sign in to your Azot account first:

sh
azot login

Download one or more supported video URLs (replace <url> with a link from a supported site or direct stream):

sh
azot "<url>"
azot download -q 1080p -o ~/Videos "<url>"
azot get --skip-video "<url>"

azot <url>, azot download <url>, azot dl <url>, and azot get <url> all run the same download command.

Commands ​

CommandAliasWhat it does
azot [download] <urls...>dl, getDownload one or more URLs
azot install <extensions...>iInstall extension(s) from the catalog, a GitHub/GitLab repo, archive URL, or local path
azot uninstall <extensions...>rmUninstall extension(s)
azot listlsList installed and active extensions
azot list-remotels-remoteList extensions available in the catalog
azot login [extension]Sign in to your Azot account, or sign in to an extension
azot logout [extensions...]Sign out of your Azot account, or sign out of extension(s)
azot settings [key] [value]List all settings, read one setting, or set a value
azot data export <ext> [file]Export an extension's storage and session to <ext>.azot-data.json
azot data import <ext> <file>Replace an extension's storage and session from an exported file
azot mcpStart the MCP stdio server for AI agents
azot serve telegramserve tgStart the Telegram download bot
azot logsShow log files
azot initPrint the npx azot@beta init command for scaffolding an extension

Pass -d / --debug before a command to enable verbose debug logging, or --help on any command for its full option list.

Download options ​

Flags override your saved settings for a single run.

Quality, codecs, and tracks ​

FlagDescription
-q, --quality <q>Target resolution, such as best, 2160p, 1080p, or 720p (omitting it uses your saved global or per-extension preference; pass best to override a lower saved preference)
-v, --video-codec <list>Preferred video codec(s), comma-separated (e.g. avc, hevc, vp9, av1)
-r, --video-range <range>Video dynamic range, defaults to sdr
--video-bitrate <kbps>Target video bitrate in kbps
--video-dimension <dim>2D (default) or 3D (HSBS/HOU/FSBS/OU)
-a, --audio-codec <list>Preferred audio codec(s), comma-separated (e.g. aac, opus, flac)
-c, --audio-channels <n>Preferred audio channel count
--audio-bitrate <kbps>Target audio bitrate in kbps
-l, --lang <list>Preferred video/audio language(s), comma-separated
-S, --subs-lang <list>Preferred subtitle language(s), comma-separated
--selectInteractively pick video, audio, and subtitle tracks once and apply to every episode
--skip-video, --skip-audio, --skip-subtitlesOmit a track type
--hardsubPrefer hardsubbed video when available

Episodes, trimming, and live streams ​

FlagDescription
-e, --episodes <spec>Select seasons/episodes, e.g. S01E01, E04, S01-S03, S01E01-S01E04,S03
--trim-begin <time>Start output at timestamp, e.g. 00:00:06
--trim-end <time>End output at timestamp or offset from end, e.g. 00:01:30 or -00:00:30
--live-record-limit <time>Stop recording a live stream after this duration, e.g. 01:30:00

Without --live-record-limit, a live stream records until it ends or until you press Ctrl+C, which finishes and saves the recording. Press Ctrl+C a second time to quit without saving.

Output, containers, metadata, and templates ​

FlagDescription
-o, --output <dir>Output directory (defaults to downloadDir)
-f, --format <fmt>Video container: mp4, mkv, mov, ts
--audio-format <fmt>Audio-only container: m4a, mka, mp3, opus, ogg, flac
--skip-muxKeep video, audio, and subtitle tracks as separate files
--skip-subtitles-muxSave subtitles as external files beside the video
-s, --subs-format <fmt>External subtitle format: srt, vtt, ttml, ass, ssa, or original
--season-folders / --no-season-foldersPut episodes into Season NN subfolders
--overwrite / --no-overwriteReplace existing files instead of numbering copies
--embed-metadata, --embed-thumbnailEmbed tags or cover art into the output file
--save-thumbnail, --save-info-jsonSave artwork or <name>.info.json beside the file
--movie-template, --episode-templateOverride filename template ({title}, {year}, {author}, {s}, {e}, {episodeTitle}, {quality}, {codec}, {audioType}, {format}, {tag})
--movie-word-separator, --episode-word-separatorWord separator: space, dot, underscore, or dash
--allow-missing-segmentsSave a track missing up to 5% of its segments instead of failing

Network, throttling, and direct streams ​

FlagDescription
-C, --connections <n>Parallel HTTP connections per download (default 4)
-R, --retry <n>Retries on failed requests (default 3)
--throttling / --no-throttlingApply or ignore saved throttling limits
--limit-rate <rate>Combined download speed cap, e.g. 500K or 2M (turns throttling on)
--request-interval <time>Minimum wait between requests to the same server, e.g. 500ms or 2s
--download-delay <time>Wait between starting downloads and after each ends, e.g. 10s
--proxy, --proxy-meta, --proxy-mediaHTTP/HTTPS proxy for all requests, metadata only, or media only
-H, --header <name:value>Custom HTTP header for manifest requests (repeatable)
FlagDescription
--dry-runAnalyze URLs and resolve playback sources without downloading media
--jsonPrint --dry-run results as JSON
--extension <dir>Load an extension from a local folder for this run only (free on every plan)

Signing in to extensions from the CLI ​

Sign in interactively or non-interactively with azot login <extension>:

sh
# Interactive sign-in
azot login my-site

# Import cookies from an installed browser
azot login my-site --cookies-from-browser chrome
azot login my-site --cookies-from-browser auto

# Import from a Netscape cookies.txt file or raw Cookie header
azot login my-site --cookie-file ./cookies.txt
azot login my-site --cookie-header "session=..." --cookie-url https://example.com

# Token or username/password (add --no-prompt for scripts)
azot login my-site --token "$TOKEN" --no-prompt
azot login my-site --username user --password pass --otp 123456 --no-prompt

Supported values for --cookies-from-browser are chrome, chromium, brave, edge, helium, firefox, safari, and auto.

Sharing exported extension data

azot data export <extension> writes an unencrypted .azot-data.json file that includes the signed-in session. Share it only with people you trust.

Released under the MIT License.