lists
List every deck, collection, and wanted list in the workspace. It is the quickest way to see what exists, and how a script learns the names it can pass to other commands.
ritual lists [options]Options
Section titled “Options”| Option | Description | Default |
|---|---|---|
--deck |
Only list decks | |
--collection |
Only list collections | |
--wanted |
Only list wanted lists | |
--output <format> |
Output format: text, json, or ndjson |
text |
--quiet |
Suppress non-essential output | false |
The three type flags are mutually exclusive. Passing more than one is a usage error.
Examples
Section titled “Examples”List everything:
ritual listsdeck burn Burndeck stax Winota Staxcollection main Main Binderwanted needs NeedsEach text row has three aligned columns: the list type, the slug (the file basename, which other commands resolve), and the display name (the list’s # Title heading).
Only decks, as JSON:
ritual lists --deck --output json[ { "type": "deck", "slug": "burn", "name": "Burn" }, { "type": "deck", "slug": "stax", "name": "Winota Stax" }]ndjson emits the same rows, one JSON object per line.
Behavior
Section titled “Behavior”Rows are sorted by type (decks, then collections, then wanted lists), then by slug. When nothing matches, the command still exits 0: text output prints (no lists), JSON output prints [], and NDJSON prints nothing.
Exit Codes
Section titled “Exit Codes”| Code | Meaning |
|---|---|
0 |
Success (including an empty result) |
2 |
Usage error (more than one type flag) |
1 |
Runtime error |
Ritual is unofficial Fan Content permitted under the Fan Content Policy. Not approved or endorsed by Wizards of the Coast. Portions of the materials used are property of Wizards of the Coast. ©Wizards of the Coast LLC.
Card data, images and symbols come from Scryfall, which is not affiliated with this project. Ritual is free software under the AGPL-3.0. License and attribution.