Changesets · Branches · Tags · Compare
| Changeset | d1cdc8b8ac2bd215765915df5a43f33af7d498dd870d2a1c3309e160fde06277 |
|---|---|
| Author | BekahHW <rhawrot@gmail.com> · 2025-09-18 08:03 -04:00 |
| Committer | BekahHW <rhawrot@gmail.com> · 2025-09-18 08:03 -04:00 |
| Parents | a1c3c7aad6d4 |
1 file changed
modified docs/cli/install.mdx +65 −24
| @@ -23,9 +23,41 @@ | ||
| 23 | 23 | cn --version |
| 24 | 24 | ``` |
| 25 | 25 | |
| 26 | -## Initial Setup | |
| 26 | +## Two Ways to Use Continue CLI | |
| 27 | 27 | |
| 28 | -Get started is by logging in to Continue Hub for cloud-managed configurations: | |
| 28 | +<Tabs> | |
| 29 | +<Tab title="REPL Mode"> | |
| 30 | +**Interactive development sessions** | |
| 31 | + | |
| 32 | +Start a conversation with AI in your terminal: | |
| 33 | + | |
| 34 | +```bash | |
| 35 | +cn | |
| 36 | +> @src/app.js Generate unit tests for this component | |
| 37 | +``` | |
| 38 | + | |
| 39 | +Perfect for exploration, debugging, and iterative development. | |
| 40 | + | |
| 41 | +</Tab> | |
| 42 | + | |
| 43 | +<Tab title="Continuous AI Mode"> | |
| 44 | +**Automation and scripting** | |
| 45 | + | |
| 46 | +Single commands that return results: | |
| 47 | + | |
| 48 | +```bash | |
| 49 | +cn -p "Generate a commit message for current changes" | |
| 50 | +cn -p "Review the last 5 commits for issues" | |
| 51 | +``` | |
| 52 | + | |
| 53 | +Perfect for CI/CD, git hooks, and automated workflows. | |
| 54 | + | |
| 55 | +</Tab> | |
| 56 | +</Tabs> | |
| 57 | + | |
| 58 | +## Setup for CLI (REPL Mode) | |
| 59 | + | |
| 60 | +For interactive development and exploration: | |
| 29 | 61 | |
| 30 | 62 | <Steps> |
| 31 | 63 | <Step title="Login to Continue CLI"> |
| @@ -35,39 +67,48 @@ | ||
| 35 | 67 | This will open your browser to authenticate with Continue Hub. |
| 36 | 68 | </Step> |
| 37 | 69 | |
| 38 | -<Step title="Get API Key for Automation"> | |
| 70 | +<Step title="Test Interactive Mode"> | |
| 71 | +Start an interactive session: | |
| 72 | +```bash | |
| 73 | +cn | |
| 74 | +``` | |
| 39 | 75 | |
| 40 | - For automation workflows, get an API key: | |
| 41 | - 1. Visit [Continue Hub API | |
| 42 | - Keys](https://hub.continue.dev/settings/api-keys) | |
| 43 | - 2. Click **"+ New API Key"** | |
| 44 | - 3. Copy the API key immediately (you won't see it again!) | |
| 45 | - 4. Login using your Continue account. | |
| 46 | - 4. Use it in headless mode: `cn -p "your prompt"` | |
| 76 | +Try asking a question: | |
| 47 | 77 | |
| 48 | -</Step> | |
| 78 | +``` | |
| 79 | +> Tell me about the CLI | |
| 80 | +``` | |
| 49 | 81 | |
| 50 | -<Step title="Add Secrets (Optional)"> | |
| 51 | -Store secure credentials for CLI workflows: | |
| 52 | -1. Visit [Continue Hub Secrets](https://hub.continue.dev/settings/secrets) | |
| 53 | -2. Add your API keys and sensitive data | |
| 54 | -3. Reference in configurations with `${{ secrets.SECRET_NAME }}` | |
| 55 | 82 | </Step> |
| 56 | 83 | </Steps> |
| 57 | 84 | |
| 58 | -## First Test Run | |
| 85 | +## Setup for CLI (Continuous AI Mode) | |
| 59 | 86 | |
| 60 | -Try Continue CLI in interactive mode: | |
| 87 | +For automation workflows and scripting: | |
| 61 | 88 | |
| 62 | -```bash | |
| 63 | -cn "Tell me about the CLI" | |
| 64 | -``` | |
| 89 | +<Steps> | |
| 90 | +<Step title="Get API Key for Automation"> | |
| 91 | +For automation workflows, get an API key: | |
| 92 | +1. Visit [Continue Hub API Keys](https://hub.continue.dev/settings/api-keys) | |
| 93 | +2. Click **"+ New API Key"** | |
| 94 | +3. Copy the API key immediately (you won't see it again!) | |
| 95 | +4. Login using your Continue account | |
| 96 | +</Step> | |
| 65 | 97 | |
| 66 | -Or test headless mode: | |
| 98 | +<Step title="Add Secrets for Workflows"> | |
| 99 | +Store secure credentials for CLI workflows: | |
| 100 | +1. Visit [Continue Hub Secrets](https://hub.continue.dev/settings/secrets) | |
| 101 | +2. Add your API keys and sensitive data | |
| 102 | +3. Reference in configurations with `${{ secrets.SECRET_NAME }}` | |
| 103 | +</Step> | |
| 67 | 104 | |
| 105 | +<Step title="Test Async Mode"> | |
| 106 | +Try async mode for automation: | |
| 68 | 107 | ```bash |
| 69 | 108 | cn -p "Generate a conventional commit message for the current git changes" |
| 70 | 109 | ``` |
| 110 | +</Step> | |
| 111 | +</Steps> | |
| 71 | 112 | |
| 72 | 113 | ## What's Next? |
| 73 | 114 | |
| @@ -77,11 +118,11 @@ | ||
| 77 | 118 | </Card> |
| 78 | 119 | |
| 79 | 120 | <Card title="Create your first workflow" icon="gear" href="/guides/posthog-github-continuous-ai"> |
| 80 | - Customize models, rules, and tools | |
| 121 | + Build automated workflows with Continue CLI | |
| 81 | 122 | </Card> |
| 82 | 123 | </CardGroup> |
| 83 | 124 | |
| 84 | -### Getting Help | |
| 125 | +## Getting Help | |
| 85 | 126 | |
| 86 | 127 | If you encounter issues: |
| 87 | 128 |