Files
botsmann/docs/COMMANDS.md
T
g-butandClaude Opus 4.5 f01b7856dd docs: add comprehensive agentic development infrastructure
Add AI agent configuration files:
- .claude/CLAUDE.md - Claude Code instructions
- AGENTS.md - OpenAI Codex/universal agent guide

Add development documentation:
- docs/BEST_PRACTICES.md - DRY, SSOT, SoC, YAGNI, KISS principles
- docs/SHARED_CONTEXT.md - Tech stack and architecture
- docs/COMMANDS.md - npm scripts reference

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 23:08:26 +01:00

2.5 KiB

Commands Reference

All npm scripts available in the Botsmann project.


Quick Reference

Command Description
npm run dev Start development server
npm run build Production build
npm run start Start production server
npm run lint Run ESLint
npm run test Run tests

Development

Start Dev Server

npm run dev

Starts Next.js development server on http://localhost:3000 with:

  • Hot Module Replacement (HMR)
  • Fast Refresh
  • Error overlay

Run Linting

npm run lint

Runs ESLint to check for code quality issues.


Building

Production Build

npm run build

Creates optimized production build in .next/ directory.

CI Build

npm run build:ci

Runs npm ci (clean install) then builds. Used in CI pipelines.

Start Production Server

npm run start

Starts the production server. Requires npm run build first.


Testing

Run All Tests

npm run test

Runs Jest test suite once.

Watch Mode

npm run test:watch

Runs tests in watch mode - re-runs on file changes.


Common Workflows

Before Committing

npm run lint && npm run build

Ensures code passes linting and builds successfully.

Full Test Run

npm run lint && npm run test && npm run build

Complete verification before pushing.

Fresh Start

rm -rf node_modules .next
npm install
npm run dev

Clean reinstall and restart.


Environment Setup

First Time Setup

# Clone repository
git clone git@github.com:g-but/botsmann.git
cd botsmann

# Install dependencies
npm install

# Copy environment variables
cp .env.example .env
# Edit .env with your values

# Start development
npm run dev

Update Dependencies

npm update

Check for Vulnerabilities

npm audit

Fix Vulnerabilities

npm audit fix

Deployment

Manual Deploy to Vercel

# Install Vercel CLI if needed
npm i -g vercel

# Deploy to preview
vercel

# Deploy to production
vercel --prod

Automatic Deploy

Push to main branch - GitHub Actions handles deployment.


Troubleshooting

Port Already in Use

# Find process using port 3000
lsof -i :3000

# Kill it
kill -9 <PID>

Clear Next.js Cache

rm -rf .next
npm run dev

Reset Everything

rm -rf node_modules .next package-lock.json
npm install
npm run dev

Last Updated: 2026-01-07