Skip to main content

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.
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. 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.
All subcommands accept these shared flags: 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.
Exactly one trigger is required: pass --cron for a scheduled automation or one or more --push-repo flags for a push-triggered automation.

Examples

An automation file uses the same shape as the inline flags. The on field holds the trigger:

mint automations list

List automations for the current deployment.
The default table output shows each automation’s ID, name, type, trigger, and status. Use --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


Check for broken internal links in your documentation.
The command excludes files matching .mintignore patterns. Links that point to ignored files report as broken.

mint a11y

Check for accessibility issues in your documentation.
Checks color contrast ratios and missing alt text on images and videos.

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.
The standalone mint openapi-check command is deprecated. Use mint validate instead.

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 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:
You can also disable telemetry by setting one of these environment variables: Your preference saves in ~/.config/mintlify/config.json and persists across CLI sessions.