Commands Reference
Comprehensive reference of all commands across Sprout repositories.
sprout_backend
Development
# Start development server (port 3000)
doppler run -- bun run start:dev
# Start in debug mode
doppler run -- bun run start:debug
# Start background worker (port 4001)
doppler run -- bun run worker:dev
# Start worker in debug mode
doppler run -- bun run worker:debug
Production
# Build for production
bun run build
# Start production server
doppler run -- bun run start:prod
# Start production worker
doppler run -- bun run worker:prod
Code Quality
# Type checking
bun run type:check
# Lint with auto-fix
bun run lint
# Lint check only
bun run eslint:check
# Format code
bun run format
# Prettier check
bun run prettier:check
# Prettier write
bun run prettier:write
Testing
# Run tests
bun test
# Watch mode
bun run test:watch
# Coverage
bun run test:cov
# Debug tests
bun run test:debug
# E2E tests
bun run test:e2e
Database
# Generate Prisma client
bun run postinstall
# Run migrations
doppler run -- npx prisma migrate dev
# Generate OpenAPI types
bun run gen:skybox:openapi
bun run gen:ticketmaster:openapi
bun run gen:tickops:openapi
CLI
# Run CLI commands (production)
doppler run -- bun run cli -- command-name [options]
# Run CLI commands (development)
doppler run -- bun run cli:dev -- command-name [options]
sprout_etl
Development
# Start development server (port 3001)
doppler run -- bun run start:dev
# Start in debug mode
doppler run -- bun run start:debug
# Start development worker
doppler run -- bun run worker:dev
# Start worker in debug mode
doppler run -- bun run worker:debug
Production
# Build TypeScript
bun run build
# Start production server
doppler run -- bun run start:prod
# Start production worker
doppler run -- bun run worker:prod
Code Quality
# Type checking
bun run type:check
# Lint with auto-fix
bun run lint
# Lint check only
bun run eslint:check
# Format code
bun run format
# Prettier check
bun run prettier:check
# Prettier write
bun run prettier:write
Testing
# Run tests
bun test
# Watch mode
bun run test:watch
# Coverage
bun run test:cov
# Debug tests
bun run test:debug
# E2E tests
bun run test:e2e
Database
# Generate Prisma client
bun run postinstall
# Run migrations
doppler run -- npx prisma migrate dev
CLI
# Run CLI commands (production)
doppler run -- bun run cli -- command-name [options]
# Run CLI commands (development)
doppler run -- bun run cli:dev -- command-name [options]
pricing_dashboard
Development
# Start development server (port 5173)
bun run dev
# Preview production build
bun run preview
Production
# Build for production
bun run build
Code Quality
# Lint
bun run lint
cloudflare-workers
Development
# Start local development server
bun run dev
# Type check and validate
bun run check
Deployment
# Deploy to Cloudflare
bun run deploy
# Generate TypeScript types
bun run types
Database (D1)
# Apply migrations to local D1
bun run seedLocalD1
# Apply migrations to remote D1 (before deploy)
# Runs automatically on predeploy
Testing
# Test scraping functionality
bun run test-scraping
# Trigger scraping locally
bun run trigger-scraping
# Trigger processor locally
bun run trigger-processor
# Trigger in production
bun run trigger-prod
skybox_token_extractor
Development
# Start development server (port 3005 in Docker)
bun run dev
# Start production server
bun start
Setup
# Install Playwright browsers (required first time)
bun run install-browsers
Testing
# Run diagnostics
node diagnostic.js
# Test the service
node client.js
overlevered_app
Development
# Start development server
bun run dev
# Preview production build
bun run preview
Production
# Build for production
bun run build
Code Quality
# Lint
bun run lint
overlevered_server
Development
# Start Firebase emulators
bun run serve
# Start with nodemon
bun run devStart
# Build TypeScript
bun run build
# Watch TypeScript
bun run watch
Deployment
# Deploy to Firebase
bun run deploy
# View logs
bun run logs
Stripe
# Listen to Stripe webhooks locally
bun run stripe:listen
Docker Commands
Starting Services
# Start all services
docker-compose up -d
# Start with logs
docker-compose up
# Stop services
docker-compose down
# View logs
docker-compose logs -f
# Restart services
docker-compose restart
Database Operations
# Access PostgreSQL
docker exec -it <container_name> psql -U postgres
# Access Redis CLI
docker exec -it <container_name> redis-cli
Common Patterns
Running with Doppler
All commands that need environment variables should use:
doppler run -- <command>
Running Migrations
doppler run -- npx prisma migrate dev
Installing Dependencies
# Using bun (preferred)
bun install
# Using npm (if needed)
npm install
Type Checking
# Most repos support
bun run type:check
Detailed Explanations
For detailed explanations of each command, see Detailed Commands Reference.
Next Steps
- Detailed Commands Reference - Complete command explanations
- Environment Variables - Environment variable reference
- Docker Setup - Docker configuration
- Testing - Testing guidelines