Installation

Getting started2 min read||

DocsLit requires Node.js 24 or later. You can run it directly with npx or install it globally.

Prerequisites

Check your Node.js version:

node --version DocsLit uses top-level await and modern ES module features that require Node.js 24.0.0 or later. If you see syntax errors, upgrade your Node.js installation.

Install with npx (recommended)

You do not need to install anything globally. Use npx to run DocsLit commands directly:

npx docslit init my-docs npx docslit dev

This always uses the latest version.

Install globally

If you prefer a shorter command, install DocsLit globally:

npm install -g docslit pnpm add -g docslit yarn global add docslit

After installing globally, you can use docslit directly:

docslit init my-docs docslit dev

Verify the installation

Run the version command to confirm everything is working:

npx docslit --version

You should see the current version number printed in your terminal.

Next steps

Now that DocsLit is installed, follow the quickstart to create your first documentation site.