MarkApiDown ships as a single static Rust binary with no runtime dependencies — no Node.js, no Python, no JVM. Pick the install method that matches your environment, verify the binary is on yourDocumentation Index
Fetch the complete documentation index at: https://docs.markapidown.net/llms.txt
Use this file to discover all available pages before exploring further.
PATH, and you are ready to run specs within a minute of starting.
Requirements
Each install method has a different prerequisite. If you are unsure which to choose, use the Shell installer on macOS or Linux or the Windows MSI on Windows — neither requires an existing language toolchain.| Install method | Requirement |
|---|---|
| Shell installer | macOS or Linux, curl, sh |
| Cargo | Rust 1.75 or later (rustup update stable) |
| Homebrew | macOS or Linux with Homebrew installed |
| npm | Node.js 18 or later |
| Docker | Docker Engine (any recent version) |
| Windows MSI | Windows 10 or Windows Server 2019 or later |
Install methods
- Shell installer
- Cargo
- Homebrew
- npm
- Docker
- Windows MSI
The shell installer is the recommended method for macOS and Linux users. It fetches the latest prebuilt binary for your platform and places it in If
~/.local/bin — no compiler or package manager required.~/.local/bin is not already on your PATH, the installer detects this and prints the exact line to add to your shell profile (~/.bashrc, ~/.zshrc, or ~/.profile). Follow that prompt, then open a new terminal tab.The installer script is open-source and auditable at github.com/mark-api-down/mad. Review it before piping to
sh if that is your policy.Verify the installation
After installing, confirm thatmad is on your PATH and that your environment passes the built-in diagnostics check.
mad version prints the installed binary version. mad doctor runs a broader set of checks:
- Confirms
api-docs/exists in the current project (or a parent directory). - Verifies that
.env.localis listed in.gitignoreso secrets are not committed. - Parses every spec in the project and reports structural errors.
- Checks that any installed AI agent skill files match the current binary version.
If you run
mad doctor outside of a MarkApiDown project directory, some checks are skipped. Navigate to your project root (or create one with mad init) to see a full diagnostic report.Shell completions
Generate tab-completion scripts for your shell so you get auto-complete for subcommands, flags, and file paths when you press Tab.- Bash
- Zsh
- Fish
Append the completion script to your Bash config and reload the shell:
Upgrading
Use the same method you used to install. Each command replaces the existing binary in place.- Shell installer
- Cargo
- Homebrew
- npm
Re-run the installer script. It detects the existing binary and overwrites it with the latest release.
After any upgrade, run
mad doctor --fix to automatically update installed AI agent skill files (Claude Code, Cursor, Copilot) to match the new binary version. Stale skill files can cause agents to call deprecated flags or miss newly available commands.