Installation
Prerequisites
Node.js ≥ 18.0.0
Download from nodejs.org or use a version manager:
bash
# Using nvm
nvm install 18
nvm use 18
# Using fnm
fnm install 18
fnm use 18Claude CLI
Install and authenticate the Claude CLI:
bash
# Install Claude CLI
npm install -g @anthropic-ai/claude-cli
# Authenticate (follow the prompts)
claude configVerify your setup:
bash
claude config getInstall Claudux
Global Installation (Recommended)
bash
npm install -g clauduxVerify installation:
bash
claudux --versionLocal Installation
For project-specific usage:
bash
# As dev dependency
npm install --save-dev claudux
# Run with npx
npx claudux updateFrom Source
bash
git clone https://github.com/leojkwan/claudux.git
cd claudux
npm install -g .Environment Check
Verify your environment is properly configured:
bash
claudux checkThis command validates:
- Node.js version and availability
- Claude CLI installation and authentication
- Documentation directory status
Example output:
🔎 Environment check
• Node: v18.17.0
• Claude: claude-cli/1.2.3
• docs/: not present (will be created on first run)Troubleshooting
Claude CLI not found
bash
npm install -g @anthropic-ai/claude-cli
claude configPermission errors
bash
# Fix npm permissions
sudo chown -R $(whoami) ~/.npmNode version issues
bash
# Check version
node --version
# Update if needed
nvm install --ltsNext Steps
Once installed, head to the commands guide to start generating documentation.