Skip to main content

Commands Reference

All commands are invoked as writechoice <command> (or the shorter wcc <command>). Use this page as a quick reference — click any command to go to its full documentation.


Scrape

CommandDescription
writechoice scrapeScrapes documentation URLs and converts each page into an MDX file ready for Mintlify

Check

CommandDescription
writechoice check linksValidates internal links and anchors in MDX documentation files using browser automation
writechoice check parseValidates MDX files for parsing errors using the official @mdx-js/mdx compiler
writechoice check imagesValidates that all images on your deployed documentation pages load successfully
writechoice check pagesValidates that every page listed in docs.json navigation loads successfully
writechoice check katexFinds pages with KaTeX render errors by scanning for .katex-error elements in the live HTML

Fix

CommandDescription
writechoice fix linksAutomatically fixes broken anchor links in MDX files based on check links reports
writechoice fix parseAutomatically fixes common MDX parsing errors in documentation files
writechoice fix imagesWraps standalone images in <Frame> components in MDX files
writechoice fix inlineimagesConverts images inline within text to <InlineImage> components
writechoice fix h1Removes duplicate H1 headings that repeat the frontmatter title field
writechoice fix importsValidates and adds missing import statements for JSX components used in MDX files
writechoice fix redirectsReplaces stale source paths with destination paths inside MDX files based on docs.json redirects
writechoice fix tabsConverts code-only <Tabs> groups into <CodeGroup> components
writechoice fix codeblocksAdjusts code block flags (expandable, lines, wrap) in MDX files
writechoice fix void-tagsSelf-closes HTML void tags (img, br, hr, ...) so MDX compiles as valid JSX
writechoice fix accordionsWraps runs of 2+ sibling <Accordion> blocks in <AccordionGroup>
writechoice fix og-descriptionRenames frontmatter description to og:description
writechoice fix dollar-signsEscapes a bare $ before a digit in prose, skipping code and LaTeX math

Find

CommandDescription
writechoice find redirectsProbes broken links for HTTP redirects and writes a redirects JSON file

Readme

CommandDescription
writechoice readme convertConverts readme.com markdown exports to Mintlify MDX
writechoice readme recipesConverts legacy recipe .md files into <RequestExample>/<ResponseExample>/<Steps> MDX
writechoice readme openapiExtracts inline # OpenAPI definition blocks into Mintlify openapi frontmatter
writechoice readme openapi-dedupeComments out page bodies that duplicate their OpenAPI operation's description
writechoice readme navScrapes a readme.io sidebar and converts it to Mintlify navigation JSON

CommandDescription
writechoice nav foldersRestructures MDX files on disk to match the navigation hierarchy defined in docs.json
writechoice nav rootPromotes matching group index pages to a root key in docs.json

Docusaurus

CommandDescription
writechoice docusaurus convertConverts a Docusaurus docs folder to Mintlify-ready MDX files
writechoice docusaurus slugifyRenames files so their paths match the slug or id in their frontmatter
writechoice docusaurus navConverts a Docusaurus sidebars.js file into Mintlify navigation JSON

Other

CommandDescription
writechoice metadataFetches meta tags from live documentation pages and writes them into MDX frontmatter
writechoice sessionCaptures an authenticated browser session for use with writechoice scrape
writechoice configGenerates a config.json template file with all available configuration options
writechoice updateUpdates the CLI to the latest version from npm