Command Structure
All Forge commands follow a hierarchical structure:Main Command
Runningforge without arguments starts an interactive AI session. See the forge command for details.
Top-Level Commands
Agent
Manage AI agents and list available agents
Provider
Authenticate with API providers and manage credentials
Config
Get, set, or list configuration values
Conversation
Manage conversation history and state
Workspace
Manage workspaces for semantic search
MCP
Manage Model Context Protocol servers
Cmd
Run or list custom commands
Commit
Generate AI-powered git commit messages
Suggest
Get shell command suggestions from natural language
Utility Commands
Information Commands
Shell Integration
Maintenance
Global Flags
Many commands support the--porcelain flag for machine-readable output:
Common Patterns
Using Conversation IDs
Many commands support--conversation-id or --cid to work with specific conversations:
Piped Input
Forge supports piped input for various operations:Output Formats
Use--porcelain for machine-readable output that’s stable across versions: