A concise synthesis of CLI design best practices from industry leaders.
Essential resources for CLI design:
- PRINCIPLES.md - Four core principles synthesized from sources
- PATTERNS.md - Implementation patterns with examples
- QUICK-START.md - Checklist of essential requirements
- Obvious Over Clever - Make the right way the obvious way
- Helpful Over Minimal - Guide users to solutions when things go wrong
- Consistent Over Special - Follow established conventions
- Human-First, Machine-Friendly - Optimize for humans, support machines
cli-design/
├── PRINCIPLES.md # Core design principles from sources
├── PATTERNS.md # Common patterns with attribution
├── ANTI-PATTERNS.md # Mistakes to avoid
├── QUICK-START.md # Essential checklist
├── CLI-CHEAT-SHEET.md # One-page reference
├── CONTRIBUTING.md # Contribution guidelines
├── CHANGELOG.md # Version history
└── reference/
└── source-attribution.md # Principle mapping to sources
This guide synthesizes best practices from:
- clig.dev - Comprehensive modern CLI guidelines
- Heroku CLI Style Guide - Human-first philosophy
- Atlassian's 10 Principles - UX patterns
- GNU Standards - Foundational conventions
For detailed source mapping, see Source Attribution Guide.
These documents are designed to be:
- Concise - Focus on what matters from the sources
- Practical - Real examples and clear patterns
- Attributed - Every principle traces back to its source
For developers and AI agents building CLIs, start with QUICK-START.md for the essentials, then reference PRINCIPLES.md and PATTERNS.md as needed.