Skip to content

Docusaurus โ€” Run and Build

Requirements:

  • Node.js 18+

Create a new site:

Terminal window
npx create-docusaurus@latest my-docs classic
cd my-docs
npm install

Run locally:

Terminal window
npm run start

Visit the URL shown (usually http://localhost:3000)

Build for production (output to build/):

Terminal window
npm run build

Preview production build:

Terminal window
npm run serve

Deploy the build/ folder to any static host.