# btdl > btdl (binary-tidal-cli) is a command-line client for Tidal on top of the tidalpy (binary-tidal-py) library: catalog and real-time search, link resolution, OAuth device-flow login, resumable downloads with per-item failure isolation, streaming to stdout or files, and local library maintenance (transcode, probe, purge, diagnose). Every command takes --json; stdout carries only the payload, progress goes to stderr, and exit codes are a stable contract. Install from the Forgejo package registry; ffmpeg is required for maintain transcode/probe and optional for the download pipeline. ## Pages - [btdl](https://btdl.natz.club/index.html.md): btdl: a pure command-line client for Tidal — install from the Forgejo package registry, quick start, and the complete global-options tables (CLI flags and environment variables) for session, naming, network, downloads, and post-processing. - [Logging in](https://btdl.natz.club/login.html.md): Logging in with btdl: the device flow (recommended) and token login, token files and several accounts via --token / BTDL_TOKEN, checking and leaving sessions, and what the output never shows. - [Commands](https://btdl.natz.club/commands.html.md): The complete btdl command surface: search, resolve, metadata, downloads and the batch verbs, streaming, and local library maintenance, plus the auth, artist, album, ids, user, and maintain groups — every command with --json. - [Recipes](https://btdl.natz.club/recipes.html.md): Copy-paste btdl recipes: an artist's whole discography, what an album will play as, streaming into a player, pre-flight a download, retrying failed items, checking a local file, two accounts, background batches, and CDJ transcoding. - [Output contract](https://btdl.natz.club/output.html.md): The btdl output contract: stdout carries the payload and nothing else, stderr carries progress and errors, the stable exit codes (0, 1, 130, 2), streams to stdout, and how secrets are handled. - [Development](https://btdl.natz.club/development.html.md): Developing btdl: repository layout, the verification gate, the test surface, Forgejo CI, the docs build and its Coolify deployment, tag-driven releases, and the commit convention. ## Optional - [llms-full.txt](https://btdl.natz.club/llms-full.txt): Complete documentation in a single file.