TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/antinomyhq/forge/llms.txt
Use this file to discover all available pages before exploring further.
forge command is the main entry point for the Forge CLI. When run without arguments, it starts an interactive AI-enhanced terminal session.
Usage
Interactive Mode
Start an interactive session:Global Flags
Direct prompt to process without entering interactive mode. When provided, executes a single command and exits.Alias: Supports prompts with leading hyphens:
-pPath to a JSON file containing the conversation to execute.
Conversation ID to use for this session. When provided, resumes or continues an existing conversation instead of generating a new ID.Alias:
--cidWorking directory to use before starting the session. When provided, changes to this directory before starting forge.Alias:
-CName for an isolated git worktree to create for experimentation.
Enable verbose logging output.
Use restricted shell (rbash) for enhanced security.Alias:
-rAgent ID to use for this session.Alias:
--aidOverride the model to use for this session. This is a runtime override and does not change the permanent configuration.
Override the provider to use for this session. This is a runtime override and does not change the permanent configuration.
Path to a file containing the workflow to execute.Alias:
-wEvent to dispatch to the workflow in JSON format.Alias:
-eExamples
One-Shot Commands
Execute a single command without interactive mode:Piped Input
Pipe content to forge:Resume Conversation
Continue an existing conversation:Change Directory
Start forge in a specific directory:Use Specific Agent
Start with a specific agent:Override Model
Use a different model for this session:Output
Forge provides rich terminal output with:- Syntax-highlighted code blocks
- Markdown rendering
- Progress indicators for long-running operations
- Interactive prompts and menus
Exit Codes
0- Successful execution1- General error2- Command line parsing error