| 1 | --- |
| 2 | title: "Continue CLI (cn) Overview" |
| 3 | description: "Command-line interface for automated coding tasks, scripting, and headless development workflows with Continue's AI coding capabilities" |
| 4 | sidebarTitle: "Overview" |
| 5 | --- |
| 6 | |
| 7 | <Frame> |
| 8 | <img src="/images/cn-demo.gif" /> |
| 9 | </Frame> |
| 10 | |
| 11 | **Continue enables developers to ship faster with Continuous AI.** |
| 12 | |
| 13 | <Tip> |
| 14 | Build features from descriptions. Debug and fix issues. Navigate any codebase. |
| 15 | Automate tedious tasks. |
| 16 | </Tip> |
| 17 | |
| 18 | ## Get started in 30 seconds |
| 19 | |
| 20 | Prerequisites: |
| 21 | |
| 22 | - [Node.js 18 or newer](https://nodejs.org/en/download/) |
| 23 | - A [Continue Hub](https://hub.continue.dev) account (recommended) or local configuration |
| 24 | |
| 25 | ```bash npm |
| 26 | # Install Continue CLI |
| 27 | npm install -g @continuedev/cli |
| 28 | |
| 29 | # Navigate to your project |
| 30 | |
| 31 | cd your-awesome-project |
| 32 | |
| 33 | # Start coding with Continue |
| 34 | |
| 35 | cn |
| 36 | |
| 37 | # You'll be prompted to set up on first use |
| 38 | |
| 39 | ``` |
| 40 | |
| 41 | That's it! You're ready to start automating with Continue CLI. |
| 42 | |
| 43 | [Continue with CLI Quickstart →](/cli/quick-start) |
| 44 | |
| 45 | ## Why developers love Continue CLI |
| 46 | |
| 47 | - **Works in your terminal**: Not another chat window. Not another IDE. Continue CLI meets you where you already work, with the tools you already love. |
| 48 | - **Takes action**: Continue CLI can directly edit files, run commands, and create commits. Need more? Check out our [MCPs](/customization/mcp-tools). |
| 49 | - **Automate tasks**: Create issues from PostHog data, automatically assign labels to issues, and more. Do all this in a single command from your developer machines, or automatically in CI. |
| 50 | - **Flexible interfaces**: Use interactive mode for back-and-forth conversations, or headless mode for automation and scripting. |
| 51 | |
| 52 | ## Key Capabilities |
| 53 | |
| 54 | ### Context Engineering |
| 55 | |
| 56 | - Use `@` to reference files and provide context |
| 57 | - Use `/` to run slash commands for specific tasks |
| 58 | - Access the same context providers as IDE extensions |
| 59 | |
| 60 | ### Tool Integration |
| 61 | |
| 62 | - File editing and creation |
| 63 | - Terminal command execution |
| 64 | - Codebase understanding and analysis |
| 65 | - Git integration |
| 66 | - Web search and documentation access |
| 67 | |
| 68 | ### Model Flexibility |
| 69 | |
| 70 | - Switch between models with `/model` command |
| 71 | - Use any model configured in your `config.yaml` |
| 72 | - Access Continue Hub models and configurations |
| 73 | |
| 74 | ## Continue Hub Integration |
| 75 | |
| 76 | Continue CLI integrates seamlessly with [Continue Hub](https://hub.continue.dev) for: |
| 77 | |
| 78 | ### API Access |
| 79 | |
| 80 | Get an API key for automation workflows: |
| 81 | |
| 82 | 1. Visit [Continue Hub API Keys](https://hub.continue.dev/settings/api-keys) |
| 83 | 2. Create a new API key |
| 84 | 3. Use with `cn login` or in your automation scripts |
| 85 | |
| 86 | ### Secrets Management |
| 87 | |
| 88 | Store secure credentials for CLI workflows: |
| 89 | |
| 90 | 1. Visit [Continue Hub Secrets](https://hub.continue.dev/settings/secrets) |
| 91 | 2. Add your API keys and sensitive data |
| 92 | 3. Reference in configurations with `${{ secrets.SECRET_NAME }}` |
| 93 | |
| 94 | ### Configuration Sync |
| 95 | |
| 96 | - Cloud-managed configurations automatically sync |
| 97 | - Share configurations across team members |
| 98 | - Version control for your AI workflows |
| 99 | |
| 100 | ## Common Use Cases |
| 101 | |
| 102 | ### Development Automation |
| 103 | |
| 104 | <CodeGroup> |
| 105 | ```bash Generate Commit Messages |
| 106 | # Generate commit messages |
| 107 | cn -p "Generate a conventional commit message for the current changes" |
| 108 | ``` |
| 109 | |
| 110 | ```bash Code Review |
| 111 | # Code review automation |
| 112 | cn -p "Review the current git changes for bugs and suggest improvements" |
| 113 | ``` |
| 114 | |
| 115 | ```bash Test Generation |
| 116 | # Test generation |
| 117 | cn "@src/utils.js Generate comprehensive unit tests for this file" |
| 118 | ``` |
| 119 | |
| 120 | </CodeGroup> |
| 121 | |
| 122 | ### CI/CD Integration |
| 123 | |
| 124 | <CodeGroup> |
| 125 | ```bash Pipeline Scripts |
| 126 | # In your pipeline scripts |
| 127 | cn -p "Analyze test failures and suggest fixes" |
| 128 | ``` |
| 129 | |
| 130 | ```bash Documentation Updates |
| 131 | # Automated documentation updates |
| 132 | cn "@README.md Update this documentation based on recent changes" |
| 133 | ``` |
| 134 | |
| 135 | </CodeGroup> |
| 136 | |
| 137 | ### Codebase Analysis |
| 138 | |
| 139 | <CodeGroup> |
| 140 | ```bash Interactive Exploration |
| 141 | # Interactive exploration |
| 142 | cn |
| 143 | > @src/components Find all unused React components. How does authentication work in this codebase? |
| 144 | ``` |
| 145 | |
| 146 | ```bash Security Audits |
| 147 | # Security audits |
| 148 | cn -p "Scan the codebase for potential security vulnerabilities" |
| 149 | ``` |
| 150 | |
| 151 | </CodeGroup> |
| 152 | |
| 153 | ## Next steps |
| 154 | |
| 155 | <CardGroup cols={3}> |
| 156 | <Card title="CLI Quickstart" href="/cli/quick-start"> |
| 157 | Learn basic commands and common workflows |
| 158 | </Card> |
| 159 | |
| 160 | <Card title="Installation Guide" href="/cli/install"> |
| 161 | Install Continue CLI and set up your environment |
| 162 | </Card> |
| 163 | |
| 164 | <Card title="CLI Workflows" href="/guides/overview#continuous-ai"> |
| 165 | Task-specific tutorials and examples |
| 166 | </Card> |
| 167 | </CardGroup> |