CLI Reference
Table of contents
- Overview
- Core Commands
- Phase Management Commands
- Learning Commands
- MCP Integration
- Utility Commands
- Command Options
- Workflow Examples
- Phase Validation System
- File Structure
- Tips & Best Practices
- Error Messages
- Version Information
Overview
The FORGE CLI (v0.6.0) provides a minimal yet powerful interface for AI-driven development with built-in phase validation, progress tracking, and automatic Claude Code subagent configuration.
Core Commands
forge init
Initialize FORGE in your project directory.
forge init
Creates:
forge.yamlconfiguration file.forge/directory structure- Initial project analysis prompt
Note: Claude Code subagents are configured during global installation, not init.
forge new
Start a new development cycle.
forge new <feature-name>
forge new "user authentication"
Behavior:
- Solo mode: Creates
.forge/current.md - Team mode: Creates
.forge/current/<feature>.md - Initializes 5-phase cycle template
forge status
Display cycle progress with visual indicators (v0.6.0 feature).
forge status # Visual progress summary
forge phase # Current phase details
forge phase status # Detailed phase requirements
forge status --detailed # Full cycle content
Features:
- Visual progress bars
- Completion percentages
- Current phase indicator
- Next tasks display
Example Output:
π Current Cycle: user authentication
ββββββββββββββββββββββββββββββββββββββββββββββββββ
β
π― Focus [ββββββββββ] 100%
π π Orchestrate [ββββββββββ] 40%
β³ π¨ Refine [ββββββββββ] 0%
π Current Phase: Orchestrate
Next tasks:
β’ Plan dependencies
β’ Assign priorities
forge complete
Archive completed cycle with validation.
forge complete # With validation
forge complete --force # Skip validation
Validation Features:
- Checks all phases for completion
- Identifies mandatory incomplete items
- Prevents premature archival
- Shows helpful guidance
Validation Output:
β οΈ Cycle has incomplete phases!
Incomplete phases: Focus, Orchestrate
Mandatory tasks not completed:
π― Focus: Define test scenarios (MANDATORY)
π‘ Options:
1. Complete the remaining tasks
2. Use "forge complete --force" to archive anyway
Phase Management Commands
forge phase status
Detailed phase progress overview.
forge phase status
Shows:
- All phases with progress bars
- Mandatory incomplete items
- Visual completion indicators
- Task-level details
forge phase next
Transition to next phase with validation.
forge phase next # With validation
forge phase next --force # Skip validation
Features:
- Validates mandatory items
- Updates phase markers
- Activates next phase
- Shows blocking items
forge phase complete
Mark current phase as complete.
forge phase complete
Actions:
- Marks all items as done
- Updates phase status
- Enables bulk completion
Learning Commands
forge learn
Manage project knowledge base.
forge learn # View learnings
forge learn retrospective # Create retro template
forge learn pattern # Document pattern
forge learn claude # Generate CLAUDE.md
MCP Integration
forge mcp list
Show available MCP servers.
forge mcp list
forge mcp suggest
Get project-specific recommendations.
forge mcp suggest
forge mcp add
Add MCP server to configuration.
forge mcp add <server>
forge mcp add filesystem
Utility Commands
forge document
Start documentation session.
forge document
forge uninstall
Remove FORGE from project.
forge uninstall --confirm
Command Options
| Option | Commands | Description |
|---|---|---|
--force | complete, phase next | Skip validation checks |
--detailed | status | Show full content |
--confirm | uninstall | Confirm destructive action |
Workflow Examples
Standard Flow
# Start feature
forge new "shopping cart"
# Track progress
forge status
# Move through phases
forge phase next
# Complete when done
forge complete
With Overrides
# Force completion
forge complete --force
# Skip phase validation
forge phase next --force
Team Mode
# Parallel features
forge new "feature-a"
forge new "feature-b"
# Check all cycles
forge status
# Complete specific
forge complete feature-a.md
Phase Validation System
FORGE enforces proper workflow progression:
Validation Rules
- Mandatory Tasks: Must be completed before phase transitions
- Phase Dependencies: Canβt skip phases
- Completion Checks: All phases validated before archival
- Override Options:
--forceflags for flexibility
Visual Progress Indicators
| Symbol | Meaning |
|---|---|
| β³ | Phase pending |
| π | Phase in progress |
| β | Phase complete |
| β οΈ | Mandatory item incomplete |
Progress Bars
[ββββββββββ] 100% - Complete
[ββββββββββ] 40% - In progress
[ββββββββββ] 0% - Not started
File Structure
project/
βββ forge.yaml # Configuration
βββ .forge/
β βββ current.md # Active cycle
β βββ history/ # Archived cycles
β βββ templates/ # Templates
β βββ agents/ # Agent definitions
βββ .claude/
βββ agents/ # Subagents
Tips & Best Practices
- Check Progress Often: Use
forge statusregularly - Complete Phases: Donβt skip ahead without finishing
- Use Validation: Let FORGE guide proper workflow
- Force When Needed: Override for special cases
- Track Learnings: Document patterns and insights
Error Messages
| Message | Meaning | Solution |
|---|---|---|
| βNo active cycleβ | No cycle started | Run forge new <feature> |
| βIncomplete phasesβ | Validation failed | Complete tasks or use --force |
| βCannot move to next phaseβ | Mandatory items incomplete | Finish required items |
Version Information
Current Version: 0.6.0
For updates: GitHub Repository