Installation
Install the CLI from the terminal and confirm it runs.
Requirements
- Node 24.20 or newer within Node 24
- npm or pnpm
- A project folder (an existing repository works)
Install
npm install --save-dev @specistry/cli
npx specistry --helppnpm add --save-dev @specistry/cli
pnpm exec specistry --helpWarningRelease candidate
Release candidates are published under the next tag, never latest. Pin the exact version so CI and laptops build the same thing.
Add scripts
Scripts keep commands identical for everyone on the team and in CI.
{
"scripts": {
"docs:validate": "specistry validate",
"docs:build": "specistry build",
"docs:check": "specistry check"
},
"devDependencies": {
"@specistry/cli": "0.1.0-rc.3"
}
}Edge cases
Running from a sub-folder
Config not found✕ FAILSterminal
cd docs
npx specistry build✓ FIXterminal
npx specistry build --root ..The CLI never searches parent directories.
Importing internal packages
Unsupported interface✕ FAILSspecistry.config.ts
import { defineConfig } from "@specistry/cli/src/config";✓ FIXspecistry.config.ts
import { defineConfig } from "@specistry/config";Only the published entry points are supported.