Terminal (CLI)
Overview
The Command Line Interface (CLI) is the default mode when you run faheemcode. It provides a rich, interactive experience directly in your terminal.
faheemcode
Features
- Real-time interaction: Type natural language tasks and receive instant feedback
- Live status monitoring: Watch the agent's progress as it works
- Command palette: Press
Ctrl+Pto access settings, MCP status, and more
Command palette
Press Ctrl+P to open the command palette, then select from the dropdown options:
| Option | Description |
|---|---|
| Settings | Open the settings configuration menu |
| MCP | View MCP server status |
Controls
| Control | Action |
|---|---|
Ctrl+P | Open command palette |
Esc | Pause the running agent |
Ctrl+Q or /exit | Exit the CLI |
Starting with a task
Start a conversation with an initial task:
# Provide a task directly
faheemcode -t "Create a REST API for user management"
# Load task from a file
faheemcode -f requirements.txt
Confirmation modes
Control how the agent requests approval for actions:
# Default: Always ask for confirmation
faheemcode
# Auto-approve all actions (use with caution)
faheemcode --always-approve
# Use LLM-based security analyzer
faheemcode --llm-approve
Resuming conversations
Resume previous conversations:
# List recent conversations
faheemcode --resume
# Resume the most recent
faheemcode --resume --last
# Resume a specific conversation
faheemcode --resume abc123def456
For more details, see Resume Conversations.
Tips
See also
- Quick Start - Get started with the CLI
- MCP Servers - Configure MCP servers
- Headless Mode - Run without UI for automation