Skip to main content

Quick Start

This guide walks you through setting up the CLI and running your first validation in under five minutes.

1. Install

npm install -g @writechoice/mint-cli
npx playwright install chromium

2. Create a config file

Run this in the root of your Mintlify project (the folder that contains docs.json):

wcc config

This creates a config.json file. Edit the placeholder values:

{
"source": "https://docs.your-site.com",
"target": "http://localhost:3000"
}
  • source — your live documentation URL (used for link validation and metadata)
  • target — your local preview server (used when validating against a local build)

3. Validate MDX parsing

Check all MDX files in the project for syntax errors:

wcc check parse

Errors are written to mdx_errors_report.json. Fix them automatically with:

wcc fix parse

Check internal links and anchors against your live site:

wcc check links

Results are saved to links_report.json. Fix broken anchors automatically:

wcc fix links

5. Explore other commands

CommandWhat it does
wcc check imagesVerify all images load on live pages
wcc check pagesVerify all pages in docs.json return 200
wcc fix codeblocksAdd/remove flags on code blocks
wcc fix imagesWrap standalone images in <Frame>
wcc nav foldersRestructure files to match your docs.json nav
wcc metadataPull meta tags from live pages into frontmatter
wcc scrapeScrape a site and convert pages to MDX

See the Commands section in the sidebar for full documentation on each command.