Choose the installation method that fits your workflow.

npm
pnpm
yarn
Bun
npm install -D @docmd/core
npx @docmd/core init
pnpm add -D @docmd/core
pnpm dlx @docmd/core init
yarn add -D @docmd/core
yarn dlx @docmd/core init
bun add -D @docmd/core
bunx @docmd/core init

This pins the version across your team and CI/CD pipeline.

After local install

Once @docmd/core is a project dependency, use docmd (or npm docmd, yarn docmd, bun docmd) instead of npx @docmd/core for all commands.

Install globally

npm
pnpm
yarn
Bun
npm install -g @docmd/core
pnpm add -g @docmd/core
yarn global add @docmd/core
bun add -g @docmd/core
# Use the 'docmd' command anywhere
docmd dev
docmd build

Browser-only integration

Library use only

This method embeds the docmd rendering engine into another web application. It is not the standard way to build documentation sites.

<!-- Core Styles -->
<link rel="stylesheet" href="https://unpkg.com/@docmd/ui/assets/css/docmd-main.css">

<!-- Processing Engine -->
<script src="https://unpkg.com/@docmd/live/dist/docmd-live.js"></script>

See the Browser API guide for integration details.

Troubleshooting

Permission denied (EACCES)

If you encounter EACCES errors during global installation on macOS or Linux, switch to a Node version manager like nvm or fnm instead of using sudo.

PowerShell script execution (Windows)

If PowerShell blocks script execution, run as Administrator:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser