The `mint` package provides the official Command Line Interface (CLI) for Mintlify, a platform for building and publishing documentation. It enables developers to scaffold new documentation sites, preview changes locally, validate documentation builds in strict mode (useful for CI/CD), check for broken internal and external links, validate OpenAPI specifications, and perform accessibility audits. The current stable version is 4.2.527. As a CLI tool, its release cadence is typically tied to the evolution of the Mintlify platform itself, receiving regular updates to support new features and address issues. Key differentiators include its tight integration with the Mintlify ecosystem, specialized commands for documentation validation (e.g., `broken-links`, `openapi-check`, `a11y`), and a streamlined local development workflow with `mint dev`. It is designed for direct command-line execution rather than programmatic import.
npm install mintVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to install the Mintlify CLI globally, initialize a new documentation project, run a local development preview server on a custom port, and perform basic documentation validation and link checking.
Ensure your development environment uses Node.js LTS versions between 20.17 and 24.x. Use `nvm` or `fnm` to manage Node.js versions and switch to a supported version: `nvm install 20 && nvm use 20` or `nvm install 22 && nvm use 22`.
Ensure you are in the root directory of your Mintlify project before running commands like `mint dev`. If starting a new project, use `mint new` first.
For comprehensive link checking, always include the relevant flags, e.g., `mint broken-links --check-external --check-anchors --check-snippets`.
1. Verify `docs.json` exists in the current directory. 2. Run `mint update` to get the latest CLI. 3. Ensure your Node.js version is 20.17 or higher (but not 25+). 4. Delete the contents of the `.mintlify` folder in your home directory (`~/.mintlify`).
Install the CLI globally using `npm i -g mint`. If it's already installed, ensure your system's PATH environment variable includes the `npm` global binaries directory.
Install and switch to a supported Node.js LTS version (e.g., Node.js 20 or 22) using a version manager like `nvm` or `fnm`. Example: `nvm install 20 && nvm use 20`.
No dependency data recorded yet.