Start the local preview
Navigate to your documentation directory containing yourdocs.json file and run:
http://localhost:3000. As you edit, changes appear in real time.
By default, the preview opens automatically in your browser. To prevent the browser from opening, use the --no-open flag:
Log in for search and assistant
You must authenticate the CLI with your Mintlify account to enable search and the assistant.mint login command, the CLI stores your credentials in ~/.config/mintlify/config.json so you stay logged in across sessions.
Once logged in, run mint dev to start the local preview with search and the assistant enabled. The assistant uses the same indexed content as your deployed documentation site.
To check your authentication status, run:
Custom ports
By default, the CLI uses port 3000. To use a different port, use the--port flag:
Skip OpenAPI processing
If you have many OpenAPI files, skip OpenAPI processing during local development to improve performance with the--disable-openapi flag:
Preview as a specific group
If you use group-based access control, preview as a specific authentication group with the--groups flag: