Makefile Commands Reference
TL;DR: This project has 124 Makefile targets. Start with make help-common for the most frequently used commands.
Overview
This document provides a comprehensive reference for all Makefile commands available in this project. Commands are organized by category for easy navigation.Quick Start
Command Categories
- Testing - Run tests, generate coverage, debug
- Validation - Validate code, configs, deployments
- Documentation - Build, serve, validate docs
- Setup & Infrastructure - Install deps, start services
- Deployment - Deploy to environments, rollback
- Linting & Code Quality - Format, lint, security scan
- Monitoring & Logs - View logs, open dashboards
- Database - Backup, restore, shell
- Running - Start MCP server
- Health Checks - Verify system health
- Utilities - Clean, reset, benchmarks
Testing (52 commands)
Recommended Commands (Start Here)
| Command | Duration | Purpose |
|---|---|---|
make test-dev | 1-2 min | RECOMMENDED - Fast parallel tests with fail-fast |
make test | 3-5 min | All tests with coverage (parallel) |
make test-unit | 2-3 min | Unit tests only (fast, no external deps) |
make test-integration | 5-8 min | Integration tests (requires infrastructure) |
make test-ci | 8-12 min | CI-equivalent tests (matches GitHub Actions) |
Core Testing
Coverage Reports
make test-coverage for comprehensive reports. Use make test-coverage-fast during rapid iteration.
Fast Testing Shortcuts
make test-dev (recommended) for rapid iteration. Use make test-fast-core for ultra-fast smoke checks.
Quality Tests
make test-all-quality before creating PRs.
Specialized Testing
Infrastructure Testing
Deployment Testing
Incremental Testing
.coverage file. Run make clean to reset coverage data.
Validation (12 commands)
Tiered Validation (Recommended)
| Command | Duration | Tier | Purpose |
|---|---|---|---|
make validate-commit | <30s | Tier 1 | Fast pre-commit validation |
make validate-push | 3-5 min | Tier 2 | Critical pre-push validation |
make validate-full | 12-15 min | Tier 3 | Comprehensive validation (CI-equivalent) |
Specific Validators
validate-commit, validate-push, validate-full) for better developer experience.
Documentation (10 commands)
Primary Commands
Specialized Validators
make docs-validate-mintlify as the primary validator. It’s comprehensive and authoritative.
Setup & Infrastructure (7 commands)
Complete Setup
Dependencies
Infrastructure Services
make dev-setup once for complete environment setup. Then use make setup-infra to restart services as needed.
Deployment (6 commands)
Deploy to Environments
Rollback Deployments
make validate-deployments to check without deploying.
Linting & Code Quality (5 commands)
make lint-fix before committing to auto-fix most issues. Use make lint-check to verify without modifying files.
Monitoring & Logs (5 commands)
View Logs
Open Dashboards
make logs-follow to monitor all services during development.
Database (3 commands)
db-restore target exists for restoring from backups.
Running (2 commands)
make run for standard MCP server. Use make run-streamable for HTTP-based streaming.
Health Checks (2 commands)
make health-check-fast for quick verification during development.
Utilities (10 commands)
Cleanup
Performance & Load Testing
Git & CI Utilities
Reporting
Help
Command Naming Conventions
Commands follow consistent naming patterns for easy discovery:| Pattern | Meaning | Examples |
|---|---|---|
test-* | Testing commands | test-unit, test-integration |
test-*-ci | CI-mode tests (with coverage) | test-property-ci, test-contract-ci |
validate-* | Validation commands | validate-helm, validate-openapi |
docs-* | Documentation commands | docs-serve, docs-validate |
setup-* | Infrastructure setup | setup-openfga, setup-keycloak |
deploy-* | Deployment commands | deploy-dev, deploy-production |
deploy-rollback-* | Rollback commands | deploy-rollback-dev |
lint-* | Linting & formatting | lint-check, lint-fix |
logs-* | Log viewing | logs-agent, logs-follow |
db-* | Database operations | db-shell, db-backup |
health-check-* | Health checks | health-check-fast |
Frequently Asked Questions
Which test command should I use?
For rapid iteration:make test-dev (1-2 min, fail-fast, parallel)
For comprehensive testing: make test (3-5 min, coverage, parallel)
Before creating PR: make test-all-quality (quality gates)
Matching CI exactly: make test-ci (8-12 min, XML coverage)
Which validation command should I use?
Before commit:make validate-commit (<30s, Tier 1)
Before push: make validate-push (3-5 min, Tier 2) - auto-runs on git push
Before PR: make validate-full (12-15 min, Tier 3)
See VALIDATION_STRATEGY.mdx for complete details.
How do I run just one test file?
How do I skip slow tests?
How do I run tests in parallel?
How do I generate coverage reports?
How do I debug failing tests?
How do I validate documentation?
How do I clean up after tests?
Performance Tips
Fast Iteration Workflow
Incremental Testing
Parallel Execution
Troubleshooting
”Command not found: make”
Installmake for your system:
“uv: command not found”
Installuv (the package manager):
“Pre-commit hooks failed”
Run hooks manually to see details:“Tests hanging or timing out”
Check for async mock issues:“Coverage report not generated”
Ensure coverage data exists:Related Documentation
- Validation Strategy: VALIDATION_STRATEGY.mdx - Complete guide to tiered validation
- Testing Guide:
tests/README.md- Test organization and patterns - Pre-commit Guide:
.pre-commit-config.yaml- Hook configuration - GitHub Actions:
.github/workflows/- CI/CD workflows - TDD Standards:
/home/vishnu/.claude/CLAUDE.md- Global TDD requirements
Contributing
When adding new Makefile targets:- Follow naming conventions - Use consistent prefixes (
test-,validate-,docs-, etc.) - Add help text - Use
##comment after target name formake help - Test thoroughly - Ensure target works in clean environment
- Update this document - Add new target to appropriate category
- Consider deprecation - Use deprecation warnings for replaced targets
Last Updated: 2025-11-16 (CI/CD Optimization - Phase 4 & 5) Total Commands: 124 targets Version: 2.0.0 Status: Active