Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.markapidown.net/llms.txt

Use this file to discover all available pages before exploring further.

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 your 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 methodRequirement
Shell installermacOS or Linux, curl, sh
CargoRust 1.75 or later (rustup update stable)
HomebrewmacOS or Linux with Homebrew installed
npmNode.js 18 or later
DockerDocker Engine (any recent version)
Windows MSIWindows 10 or Windows Server 2019 or later

Install methods

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 ~/.local/bin — no compiler or package manager required.
curl -fsSL https://markapidown.net/install.sh | sh
If ~/.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 that mad is on your PATH and that your environment passes the built-in diagnostics check.
mad version
# 0.1.0

mad doctor
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.local is listed in .gitignore so 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.
Append the completion script to your Bash config and reload the shell:
mad completion bash >> ~/.bashrc
source ~/.bashrc

Upgrading

Use the same method you used to install. Each command replaces the existing binary in place.
Re-run the installer script. It detects the existing binary and overwrites it with the latest release.
curl -fsSL https://markapidown.net/install.sh | sh
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.