Install the CLI from a checkout
Build the opend command from the OpenD repository and
check that it runs.
Before you begin
You need Node 22.12 or later, pnpm 10, Git, and a checkout of the OpenD repository.
About this task
The CLI is not published to npm yet, so you run it from a checkout. Everything it does happens on your machine: it never contacts a server.
-
Clone the repository and install its dependencies.
git clone https://github.com/desktopmachineshop/opend.git cd opend pnpm install -
Build the packages:
pnpm build.The CLI runs the compiled output inpackages/cli/dist, so build again after you pull changes. -
Check the CLI runs:
pnpm opend --help.It lists thevalidate,buildandpreviewcommands. -
Optional: try it on the starter template.
pnpm opend validate templates/docs-starter pnpm opend preview templates/docs-starter
Results
pnpm opend is a shortcut for node packages/cli/dist/bin.js. To use
the CLI from your own docs repository, run that file with its full path, for example
node ~/src/opend/packages/cli/dist/bin.js validate ., or pass the docs folder to
pnpm opend from the checkout.
What to do next
Next: Validate a docs project, then Preview as different readers.