Global flags
These flags are available on all commands.mint dev
Start a local preview of your documentation.
mint login
Authenticate with your Mintlify account.
~/.config/mintlify/config.json.
If you have more than one deployment, the CLI prompts you to select a default after you log in. You can change the default project later with mint config set subdomain <subdomain>.
mint logout
Remove stored credentials.
mint status
Display your current session details including CLI version, account email, organization, and configured subdomain.
mint automations
Create, list, and delete automations from the terminal. Requires authentication with mint login.
mint workflow and mint workflows continue to work as aliases for mint automations, so existing scripts keep running. New scripts should use mint automations.
When
--format json is set, errors print to stderr as Error: <message> and the command exits with a non-zero status, so you can pipe successful output into other tools.
mint automations create
Create a new automation. You can pass the automation definition inline with flags, or point at a JSON or YAML file with --file.
Provide exactly one trigger: pass
--cron for a scheduled automation or one or more --push-repo flags for a push-triggered automation.
Examples
on field holds the trigger:
mint automations list
List automations for the current deployment.
--format json to get the full automation objects.
mint automations delete
Delete an automation by ID. Use mint automations list to get the ID.
mint config
Manage persistent default values for CLI commands. The configuration saves in ~/.config/mintlify/config.json.
Configuration keys
mint broken-links
Check for broken internal links in your documentation.
.mdx and .md files for links and excludes files matching .mintignore patterns. Links inside OpenAPI specification files (.yaml, .yml, .json) are not checked. Links that point to ignored files report as broken.
mint a11y
Check for accessibility issues in your documentation.
mint validate
Validate your documentation build in strict mode. Exits with an error if there are any warnings or errors. Includes automatic validation of OpenAPI specifications referenced in your docs.json.
Use
mint validate instead of the deprecated standalone mint openapi-check command.mint export
Export your documentation as a self-contained zip archive for offline viewing and distribution.
See Offline export for details.
mint score
Run agent readiness checks against a public documentation site. Requires authentication with mint login.
The command displays an overall readiness score and a breakdown of individual checks with pass/fail indicators.
Examples
Checks
The score evaluates the following areas:
Some checks only run if a check they depend on passes. If a check fails, none of the checks that depend on it run. They automatically fail. For example,
llmsTxtValid only passes if llmsTxtExists passes first.
The overall score uses weighted scoring, so higher-impact checks contribute more to your score.
mint deslop
Detect AI-sounding prose in documentation pages and get humanization suggestions. Requires authentication with mint login.
.md and .mdx pages (staged, unstaged, and untracked). In a docs repo with a docs.json, changed files are automatically filtered to the pages referenced in your navigation, so .mintignored and unpublished pages are skipped. You can also pass explicit file paths or globs.
Each page is scored on the fraction of prose that reads as AI-written. Pages that meet or exceed --threshold fail, and the command exits with status 1 if any page is flagged or errors. Fully-human pages never fail, even at --threshold 0.
For each flagged page, the output shows the AI-written percentage, the flagged line ranges, the offending prose, and suggested rewrites you can apply.
Checking pages consumes AI credits.
--fix-whitespace runs locally and does not charge credits. If the batch hits a credits or availability error, the remaining pages are skipped instead of retried.Examples
Fixing whitespace
--fix-whitespace deterministically cleans prose whitespace in each checked file: trailing spaces, runs of blank lines, unicode and zero-width spaces, and internal double-spaces. Fenced code blocks, inline code, and frontmatter are left untouched. Because it runs locally, it is safe to include in pre-commit hooks or CI.
JSON output
--format json writes a single JSON object to stdout with a results array (one entry per file, keyed by path) and a summary block. Errors are reported per file and counted in summary.errors. This shape is designed for agents that loop: check, rewrite flagged passages, then re-run until the command exits 0.
The CLI calls the same detection service exposed by the Admin API. Use the check page for AI-sounding prose endpoint if you need to run these checks from a CI pipeline or internal tool without shelling out to the CLI.
mint new
Create a new documentation project by picking a theme or cloning a pre-defined template from the mintlify/templates repository.
mint update
Update the CLI to the latest version.
mint version
Display the current CLI and client versions.
Coming soon
These commands are available to run but are not yet functional. Running them records your interest through CLI telemetry and helps prioritize what ships next.Telemetry
The CLI collects anonymous usage telemetry to help improve Mintlify. Telemetry data includes the command name, CLI version, operating system, and architecture. Mintlify does not collect personally identifiable information, project content, or file paths. By default, the CLI collects telemetry data. You can opt out at any time using the--telemetry flag:
Your preference saves in
~/.config/mintlify/config.json and persists across CLI sessions.