Your First Deck
Ritual works in the directory you run it from. That directory is your workspace: a folder of plain files, and usually a git repository. Make a folder for your cards, step into it, and create a deck:
mkdir my-cards && cd my-cardsritual new deck "My Commander Deck" # add --format modern (or standard, …) for other formatsritual add-card "My Commander Deck" Sol RingThe first command that needs card data offers to download Scryfall’s card database into a local cache. Say yes. Later commands read from that cache, so they are fast and work offline.
The File
Section titled “The File”The deck is now a markdown file, decks/My Commander Deck.md:
---format: commandertags: []---
# My Commander Deck
## Main- 1 Sol Ring &1You can edit it with Ritual or in any text editor. The &1 at the end of the line is the card’s ID within the list; Ritual adds it and keeps it stable. List Files describes the whole format.
Beside it, Ritual keeps My Commander Deck.changes.md, a dated log of the cards it adds, removes or changes, and My Commander Deck.md.sha256, a hash of the file as Ritual last wrote it. When you edit the file by hand, ritual detect-changes uses that hash to notice the edit and log it. The GitHub workflow init-site writes can run it for you on every push.
Import Instead
Section titled “Import Instead”Already have a deck online? Import it from Archidekt, Moxfield, or MTGGoldfish instead:
ritual import https://archidekt.com/decks/12345Text files and CSV exports from other apps work too. See import.
From Here
Section titled “From Here”ritual edit # open the interactive editorritual price "My Commander Deck" # what the deck costs todayritual serve --build # build the website and serve it at http://localhost:3000The quick tour walks through these and the rest of what Ritual does.
What You Get
Section titled “What You Get”- Lists as files. Each deck, collection, and wanted list is one markdown file under
decks/,collections/, orwanted/. Edit them with Ritual or by hand. See List Files. - Three ways to work. The command line, a browser-based admin site you run with
ritual admin, and a public site you build and host. - Imports and syncs. Decks from Archidekt, Moxfield, MTGGoldfish, plain text, and CSV files, plus two-way sync with Archidekt for decks and your collection.
- Prices. TCGplayer, Cardmarket, Card Kingdom, and Cardhoarder (MTGO tix) prices for every list, and Card Kingdom buylist quotes when you want to sell.
- Card lookup. Search Scryfall with its full query syntax from the terminal.
- AI agents. An MCP server and installable agent skills so an assistant can drive Ritual for you.
Where to Go Next
Section titled “Where to Go Next”- List Files explains the file format Ritual reads and writes.
- Configuration covers the optional
ritual.config.json. - CLI Conventions lists the global options, scripting output, and exit codes shared by every command.
- Commands is the full command reference.
- Public Site and Admin Site describe the two web interfaces.
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.