Skip to main content

Global flags

These flags are available on all commands.
FlagDescription
--telemetry, -tEnable or disable anonymous usage telemetry.
--help, -hDisplay help for the command.
--version, -vDisplay the CLI version. Alias for mint version.

mint dev

Start a local preview of your documentation.
mint dev [flags]
FlagDescription
--portPort to run the local preview on. Defaults to 3000.
--no-openDo not open the browser automatically.
--groupsComma-separated list of user groups to mock for preview.
--disable-openapiSkip OpenAPI file processing to improve performance.
--local-schemaAllow locally hosted OpenAPI files served over HTTP.

mint login

Authenticate with your Mintlify account.
mint login
Opens a browser window to complete authentication. If the browser does not open, the CLI displays a URL to open manually and a prompt to paste the authorization code. Credentials save in ~/.config/mintlify/config.json.

mint logout

Remove stored credentials.
mint logout

mint status

Display the account and organization associated with your current session.
mint status

mint analytics

View analytics data for your documentation. Requires authentication with mint login.
mint analytics <subcommand> [flags]

Subcommands

SubcommandDescription
statsDisplay a summary of views, visitors, searches, feedback, and assistant usage.
searchDisplay search queries with hit counts and click-through rates.
feedbackDisplay feedback submitted by users.
conversation listList assistant conversations. Each entry includes a conversation ID.
conversation view <conversation-id>View a single conversation by ID. conversation list returns IDs.
conversation buckets listList grouped conversation categories. Each entry includes a bucket ID.
conversation buckets view <bucket-id>View conversations in a category bucket. conversation buckets list returns IDs.

Shared flags

All mint analytics subcommands accept these flags:
FlagDescription
--subdomainDocumentation subdomain. Defaults to the value set with mint config set subdomain.
--fromStart date in YYYY-MM-DD format. Defaults to 7 days ago, or the value set with mint config set dateFrom.
--toEnd date in YYYY-MM-DD format. Defaults to today, or the value set with mint config set dateTo.
--formatOutput format: plain (default), table, json, or graph.
--agentOutput JSON. Equivalent to --format json. Also activated automatically when the CLAUDECODE environment variable equals 1.

stats flags

FlagDescription
--pageFilter to a specific page path.
--humansShow only human traffic.
--agentsShow only AI agent traffic.

search flags

FlagDescription
--queryFilter by search query substring.
--pageFilter by top clicked page.

feedback flags

FlagDescription
--typeFeedback type: page (aggregate by page) or code (code snippet feedback).
--pageFilter to a specific page path.

conversation list flags

FlagDescription
--pageFilter conversations that reference a specific page in sources.

mint config

Manage persistent default values for CLI commands. The configuration saves in ~/.config/mintlify/config.json.
mint config <subcommand> <key> [value]
SubcommandDescription
set <key> <value>Set a configuration value.
get <key>Display a configuration value.
clear <key>Remove a configuration value.

Configuration keys

KeyDescriptionUsed by
subdomainDefault documentation subdomain.mint analytics
dateFromDefault start date for analytics queries (YYYY-MM-DD).mint analytics
dateToDefault end date for analytics queries (YYYY-MM-DD).mint analytics

Check for broken internal links in your documentation.
mint broken-links [flags]
The command excludes files matching .mintignore patterns. Links that point to ignored files report as broken.
FlagDescription
--check-anchorsAlso validate anchor links (for example, /page#section) against heading slugs.
--check-externalAlso check external URLs for broken links.
--check-snippetsAlso check links inside <Snippet> components.

mint a11y

Check for accessibility issues in your documentation.
mint a11y [flags]
Checks color contrast ratios and missing alt text on images and videos.
FlagDescription
--skip-contrastSkip color contrast checks.
--skip-alt-textSkip missing alt text checks.

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.
mint validate [flags]
FlagDescription
--groupsComma-separated list of user groups to mock for validation.
--disable-openapiSkip OpenAPI file processing and validation.
--local-schemaAllow validation of locally hosted OpenAPI files served over HTTP. Only supports HTTPS in production.
The standalone mint openapi-check command is deprecated. Use mint validate instead.

mint workflow

Create a workflow file interactively.
mint workflow
The CLI prompts for a name, trigger type, and other settings, then creates a .md file in .mintlify/workflows/.

mint export

Export your documentation as a self-contained zip archive for offline viewing and distribution.
mint export [flags]
FlagDescription
--outputOutput filename. Defaults to export.zip.
--groupsComma-separated list of user groups to include restricted pages for.
--disable-openapiSkip OpenAPI processing.
See Offline export for details.

mint new

Create a new documentation project from the Mintlify starter template.
mint new [directory] [flags]
FlagDescription
--nameProject name. The CLI prompts for this if not provided in interactive mode.
--themeProject theme. The CLI prompts for this if not provided in interactive mode.
--forceOverwrite the directory without prompting.

mint update

Update the CLI to the latest version.
mint update

mint upgrade

Convert a mint.json configuration file to the current docs.json format.
mint upgrade
See Global settings for more information.

mint version

Display the current CLI and client versions.
mint version

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.
CommandDescription
mint aiAI-powered documentation tools.
mint testDocumentation testing.
mint signupAccount sign-up from the CLI.
mint mcpMCP server for documentation.

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:
# Disable telemetry
mint --telemetry false

# Re-enable telemetry
mint --telemetry true
You can also disable telemetry by setting one of these environment variables:
VariableValueDescription
MINTLIFY_TELEMETRY_DISABLED1Disable Mintlify CLI telemetry.
DO_NOT_TRACK1Disable telemetry using the Console Do Not Track standard.
Your preference saves in ~/.config/mintlify/config.json and persists across CLI sessions.