Installation
DocsLit requires Node.js 24 or later. You can run it directly with npx or install it globally.
Prerequisites
Check your Node.js version:
Install with npx (recommended)
You do not need to install anything globally. Use npx to run DocsLit commands directly:
This always uses the latest version.
Install globally
If you prefer a shorter command, install DocsLit globally:
After installing globally, you can use docslit directly:
Verify the installation
Run the version command to confirm everything is working:
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.