Installation

Getting started•2 min read|
|

DocsLit requires Node.js 22.22 or later.

Prerequisites

Check your Node.js version:

node --version DocsLit is an ES module package that needs Node.js 22.22.0 or later. If you see syntax errors, upgrade your Node.js installation.

Install DocsLit

npm install -g docslit pnpm add -g docslit yarn global add docslit npx docslit init my-docs

Run any command through npx without a global install, for example npx docslit dev.

Verify the installation

Run the version command to confirm everything is working:

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.