Before you start, ensure you have the following installed:
- Git: Download Git (for version control)
- Node.js: Download Node.js (LTS version recommended)
- A GitHub account
- A code editor: e.g., Visual Studio Code
Mintlify CLI requires Node.js version 19 or higher.
- Check your current version:
node -v
- If needed, install or upgrade Node.js:
- Using Node Version Manager (nvm):
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash nvm install node
- Direct download: Visit the official Node.js website and download the latest version.
- Using Node Version Manager (nvm):
Install via npm:
npm install -g mintlify
This command installs the Mintlify CLI globally, allowing you to use it from any directory.
Check the installed version:
mintlify --version
This ensures that the CLI is installed correctly and is accessible from your terminal.
- Navigate to your project directory (ensure it contains the
docs.json
file). - Run the development server:
mintlify dev
- Open your browser and visit
http://localhost:3000
to view your documentation.
If port 3000 is in use or you prefer a different port:
mintlify dev --port 3333
This starts the server on port 3333.