mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
db3ca0500d
* update skills * update migration guide * update API migration guide * update assistant page * update analytics page * update CLI commands * deprecate openapi-check * add coming soon * update docs.json * add index page * add install page * add preview page * add analytics * add commands reference * update links * delete installation.mdx * add optional prereq steps * Add telemetry section to commands reference Incorporates telemetry content from #5039 which was merged to main after this branch was created. Documents opt-out flags, env variables, and config persistence. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * move global flags to top * vale * remove `mint upgrade` * remove unnecessary prereq * restructure analytics commands --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
42 lines
2.0 KiB
Plaintext
42 lines
2.0 KiB
Plaintext
---
|
|
title: "Mintlify CLI"
|
|
description: "The Mintlify CLI lets you preview documentation locally, test changes in real time, analyze site performance, and run quality checks before deploying to production."
|
|
keywords: ["CLI", "mint", "local development", "preview", "analytics"]
|
|
---
|
|
|
|
<img
|
|
className="block dark:hidden my-0 pointer-events-none"
|
|
src="/images/installation/local-development-light.png"
|
|
alt="Decorative graphic representing the CLI."
|
|
/>
|
|
<img
|
|
className="hidden dark:block my-0 pointer-events-none"
|
|
src="/images/installation/local-development-dark.png"
|
|
alt="Decorative graphic representing the CLI."
|
|
/>
|
|
|
|
## About the CLI
|
|
|
|
Use the [CLI](https://www.npmjs.com/package/mint) to preview your documentation locally, test changes in real time, analyze site performance, and run quality checks before deploying to production.
|
|
|
|
The CLI runs on your machine and connects to your Mintlify deployment when you need live data.
|
|
|
|
### Preview locally
|
|
Run `mint dev` to preview your documentation at `localhost:3000`. As you write and update your content, changes appear in real time without deploying. Log in to enable search and the AI assistant in your local preview.
|
|
|
|
### Analyze your documentation
|
|
Run `mint analytics` to view traffic, search queries, user feedback, and AI assistant conversations directly from the terminal. Useful for quick checks, scripting, and piping data into other tools.
|
|
|
|
### Run quality checks
|
|
Run `mint broken-links` to find broken links, `mint a11y` to check accessibility, and `mint validate` to validate your documentation build before it reaches production.
|
|
|
|
### Manage configuration
|
|
Run `mint config` to set persistent defaults like your documentation subdomain and date ranges for analytics commands.
|
|
|
|
## Next steps
|
|
|
|
- [Install the CLI](/cli/install): Get the CLI installed and ready to use.
|
|
- [Preview locally](/cli/preview): Run a local development server with search and assistant support.
|
|
- [Analyze your documentation](/cli/analytics): View analytics data from the terminal.
|
|
- [Commands](/cli/commands): Complete reference for all commands and flags.
|