docs/cline-cli/interactive-mode.mdx
Interactive mode is the primary way to work with Cline CLI when you want a collaborative, conversational experience. Unlike headless mode (which runs a single task and exits), interactive mode keeps a session open where you can have back-and-forth conversations with Cline, refine your requests, and guide the AI as it works.
Interactive mode is ideal when you:
For automated workflows, scripts, or CI/CD pipelines, see headless mode instead.
Before using interactive mode, you need to have Cline CLI installed and authenticated. If you haven't done this yet, follow the Installation & Setup guide first.
Start interactive mode by running cline without any arguments:
cline
You'll see an animated welcome screen with the Cline robot. Start typing your task in the input field at the bottom of the screen.
Keyboard shortcuts are the primary way to navigate and control the interactive CLI. Since there's no mouse interaction in the terminal, learning these shortcuts will help you work efficiently and switch between modes, manage input, and control your session without breaking your flow.
| Shortcut | Action |
|---|---|
Tab | Toggle between Plan and Act mode |
Shift+Tab | Toggle auto-approve all actions |
Esc | Exit or cancel current operation |
| Shortcut | Action |
|---|---|
Enter | Submit your message |
↑ / ↓ | Navigate message history |
Home / End | Move cursor to start/end of line |
Ctrl+A | Move cursor to beginning |
Ctrl+E | Move cursor to end |
Ctrl+W | Delete word before cursor |
Ctrl+U | Delete entire line |
| Shortcut | Action |
|---|---|
Ctrl+C | Exit with session summary |
Reference files from your workspace by typing @ followed by the filename:
@src/utils.ts can you add error handling to this file?
As you type after @, Cline shows a fuzzy search dropdown of matching files. Use arrow keys to navigate and Enter to select.
Include multiple files in a single message:
Compare @src/old-api.ts with @src/new-api.ts and list the breaking changes
Type / to see available commands. Slash commands provide quick access to settings, history, and workflows.
| Command | Description |
|---|---|
/settings | Open the settings panel |
/models | Quick model switching |
/history | Browse and resume previous tasks |
/clear | Start a fresh task (clears current conversation) |
/help | Show help and available commands |
/exit | Exit the CLI |
If you have workflows configured, they appear as additional slash commands. For example, if you have a workflow named code-review, you can invoke it with:
/code-review
Access the settings panel with /settings. Navigate between tabs using arrow keys.
| Tab | Description | Settings |
|---|---|---|
| API | Configure your AI provider and model | Provider selection, model choice, extended thinking toggle, thinking budget |
| Auto-approve | Control which actions Cline can perform without prompting | Read files, write files, execute commands, browser actions, MCP tools |
| Features | Toggle Cline capabilities | Hooks, skills, auto-compact, sound notifications |
| Account | Manage your Cline account | View account status, sign in/out, manage subscription |
| Other | Additional preferences | Theme preferences, debug options |
Cline operates in two modes, toggled with Tab. These modes work the same way in the CLI as they do in the VS Code extension. For a deeper explanation of how Plan and Act modes work, see the Plan and Act documentation.
In Plan mode, Cline analyzes your request and creates a strategy before making changes. Use this when:
In Act mode, Cline executes tasks directly. Use this when:
Press Shift+Tab to toggle auto-approve for all actions. This removes the approval prompts that appear before each action, letting Cline work continuously without interruption.
Auto-approve is useful when:
When enabled, these actions happen without prompting:
You can also configure granular auto-approve settings (e.g., auto-approve reads but not writes) via /settings → Auto-approve tab, or see the Auto-approve documentation for more details.
When you exit with Ctrl+C, Cline displays a session summary showing:
This helps you track what was accomplished during your session.
By default, all CLI instances share the same settings and state. However, you may want to run isolated instances with separate configurations for scenarios like:
To run isolated instances, use the --config flag with different directories:
# Work instance with team configuration
cline --config ~/.cline-work
# Personal instance with different model/provider
cline --config ~/.cline-personal
# Experimental instance for testing new settings
cline --config ~/.cline-test
Each config directory maintains its own provider settings, API keys, task history, and preferences.
<Tip> Use terminal multiplexers like tmux or split terminals to run multiple Cline instances in parallel, each working on different parts of your project with different models or settings. </Tip>Give Cline context about what you're working on:
I'm building a REST API with Express. The routes are in @src/routes/ and models in @src/models/. Help me add user authentication.
When you're unsure about the best approach:
[Tab to Plan mode]
How should I structure the database schema for a multi-tenant SaaS app?
The interactive CLI maintains conversation context. Build on previous messages:
> Add a login endpoint
[Cline creates the endpoint]
> Now add rate limiting to it
[Cline modifies the same endpoint]
> Add tests for both features
[Cline creates test files]