Changesets · Branches · Tags · Compare
| Changeset | b06f5503dce8128e7c700787fa29e0dee1ab1e44f2f394a33c0858110976a85c |
|---|---|
| Author | BekahHW <rhawrot@gmail.com> · 2025-09-18 08:15 -04:00 |
| Committer | BekahHW <rhawrot@gmail.com> · 2025-09-18 08:15 -04:00 |
| Parents | dfc814e4318e |
1 file changed
modified docs/cli/overview.mdx +92 −31
| @@ -42,12 +42,60 @@ | ||
| 42 | 42 | |
| 43 | 43 | [Continue with CLI Quickstart →](/cli/quick-start) |
| 44 | 44 | |
| 45 | +## Two Ways to Use Continue CLI | |
| 46 | + | |
| 47 | +Continue CLI offers two distinct modes designed for different workflows: | |
| 48 | + | |
| 49 | +### REPL Mode: Interactive Development | |
| 50 | + | |
| 51 | +**Perfect for exploration, debugging, and iterating on AI workflows** | |
| 52 | + | |
| 53 | +```bash | |
| 54 | +cn | |
| 55 | +> @src/components/UserProfile.js Review this component for security issues | |
| 56 | +> Generate comprehensive unit tests | |
| 57 | +> Suggest performance improvements | |
| 58 | +``` | |
| 59 | + | |
| 60 | +- **Interactive conversations** with your codebase | |
| 61 | +- **Iterate and refine** prompts and approaches | |
| 62 | +- **Explore and understand** complex codebases | |
| 63 | +- **Perfect for experimentation** and learning | |
| 64 | + | |
| 65 | +### Continuous AI Mode: Production Automation | |
| 66 | + | |
| 67 | +**Perfect for CI/CD, automation, and reliable workflows** | |
| 68 | + | |
| 69 | +```bash | |
| 70 | +cn -p "Generate a conventional commit message for staged changes" | |
| 71 | +cn -p "Review pull request changes for security vulnerabilities" | |
| 72 | +cn -p "Update documentation based on recent code changes" | |
| 73 | +``` | |
| 74 | + | |
| 75 | +- **Single-command execution** for automation | |
| 76 | +- **Reliable, repeatable results** for production use | |
| 77 | +- **CI/CD and pipeline integration** | |
| 78 | +- **Git hooks and automated workflows** | |
| 79 | + | |
| 80 | +### Development Workflow: REPL → Continuous AI | |
| 81 | + | |
| 82 | +<Tip> | |
| 83 | + **Pro Tip**: Start in REPL mode to iterate on your AI agent and prompts. Once | |
| 84 | + you have a workflow that works reliably, deploy it as a Continuous AI | |
| 85 | + automation. | |
| 86 | +</Tip> | |
| 87 | + | |
| 88 | +1. **Experiment in REPL mode** to perfect your prompts and agent configuration | |
| 89 | +2. **Test different approaches** interactively until you get consistent results | |
| 90 | +3. **Convert successful workflows** to automated Continuous AI commands | |
| 91 | +4. **Deploy in production** with confidence in your proven approach | |
| 92 | + | |
| 45 | 93 | ## Why developers love Continue CLI |
| 46 | 94 | |
| 47 | 95 | - **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). | |
| 96 | +- **Takes action**: Continue CLI can directly edit files, run commands, and create commits. Need more? Check out our [MCPs](/customize/deep-dives/mcp). | |
| 49 | 97 | - **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. | |
| 98 | +- **Flexible development flow**: Start interactive, then automate proven workflows. | |
| 51 | 99 | |
| 52 | 100 | ## Key Capabilities |
| 53 | 101 | |
| @@ -99,52 +147,65 @@ | ||
| 99 | 147 | |
| 100 | 148 | ## Common Use Cases |
| 101 | 149 | |
| 102 | -### Development Automation | |
| 150 | +### REPL Mode Examples | |
| 151 | + | |
| 152 | +**Interactive development and exploration:** | |
| 103 | 153 | |
| 104 | 154 | <CodeGroup> |
| 105 | -```bash Generate Commit Messages | |
| 106 | -# Generate commit messages | |
| 107 | -cn -p "Generate a conventional commit message for the current changes" | |
| 155 | +```bash Codebase Exploration | |
| 156 | +# Start interactive session | |
| 157 | +cn | |
| 158 | +> @src/components Find all unused React components | |
| 159 | +> /explain How does authentication work in this codebase? | |
| 160 | +> @auth/ What security patterns are used here? | |
| 108 | 161 | ``` |
| 109 | 162 | |
| 110 | -```bash Code Review | |
| 111 | -# Code review automation | |
| 112 | -cn -p "Review the current git changes for bugs and suggest improvements" | |
| 163 | +```bash Iterative Debugging | |
| 164 | +# Debug issues interactively | |
| 165 | +cn | |
| 166 | +> @tests/auth.test.js This test is failing, help me understand why | |
| 167 | +> @src/auth/middleware.js Let's examine this middleware | |
| 168 | +> /debug What could be causing the timeout error? | |
| 113 | 169 | ``` |
| 114 | 170 | |
| 115 | -```bash Test Generation | |
| 116 | -# Test generation | |
| 117 | -cn "@src/utils.js Generate comprehensive unit tests for this file" | |
| 171 | +```bash Workflow Development | |
| 172 | +# Develop and test automation workflows | |
| 173 | +cn | |
| 174 | +> @package.json @CHANGELOG.md Generate a release notes template | |
| 175 | +> # Test and refine the approach | |
| 176 | +> # Once working, convert to: cn -p "Generate release notes" | |
| 118 | 177 | ``` |
| 119 | 178 | |
| 120 | 179 | </CodeGroup> |
| 121 | 180 | |
| 122 | -### CI/CD Integration | |
| 181 | +### Continuous AI Mode Examples | |
| 182 | + | |
| 183 | +**Production automation and scripting:** | |
| 123 | 184 | |
| 124 | 185 | <CodeGroup> |
| 125 | -```bash Pipeline Scripts | |
| 126 | -# In your pipeline scripts | |
| 127 | -cn -p "Analyze test failures and suggest fixes" | |
| 128 | -``` | |
| 186 | +```bash Git Automation | |
| 187 | +# Generate commit messages | |
| 188 | +cn -p "Generate a conventional commit message for the current changes" | |
| 129 | 189 | |
| 130 | -```bash Documentation Updates | |
| 131 | -# Automated documentation updates | |
| 132 | -cn "@README.md Update this documentation based on recent changes" | |
| 133 | -``` | |
| 190 | +# Code review automation | |
| 134 | 191 | |
| 135 | -</CodeGroup> | |
| 192 | +cn -p "Review the current git changes for bugs and suggest improvements" | |
| 136 | 193 | |
| 137 | -### Codebase Analysis | |
| 194 | +```` | |
| 138 | 195 | |
| 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 | -``` | |
| 196 | +```bash CI/CD Integration | |
| 197 | +# In your pipeline scripts | |
| 198 | +cn -p "Analyze test failures and suggest fixes" | |
| 199 | + | |
| 200 | +# Automated documentation updates | |
| 201 | +cn -p "@README.md Update this documentation based on recent changes" | |
| 202 | +```` | |
| 203 | + | |
| 204 | +```bash Issue Management | |
| 205 | +# Create GitHub issues from PostHog data | |
| 206 | +cn -p "@posthog-data.json Create GitHub issues for UX problems found in this session data" | |
| 145 | 207 | |
| 146 | -```bash Security Audits | |
| 147 | -# Security audits | |
| 208 | +# Automated security audits | |
| 148 | 209 | cn -p "Scan the codebase for potential security vulnerabilities" |
| 149 | 210 | ``` |
| 150 | 211 |