Installation
Requirements
- Node.js 18 or later
- npm (bundled with Node.js)
Install the CLI
npm install -g @writechoice/mint-cli
This installs two equivalent commands: writechoice and wcc.
Install Playwright browsers
Several commands (check links, check images, check katex, check pages) use browser automation. Install the Chromium browser once after installing the CLI:
npx playwright install chromium
Verify
wcc --version
Troubleshooting
Permission error on install (Linux/macOS):
sudo npm install -g @writechoice/mint-cli
Or use nvm to avoid needing sudo:
nvm install --lts
npm install -g @writechoice/mint-cli
Playwright browsers missing:
npx playwright install chromium
Updating
wcc update
Or manually via npm:
npm install -g @writechoice/mint-cli@latest