Elffuss BraidHub

kikocis/continue public

Separate async and interactive modes
Changesetd1cdc8b8ac2bd215765915df5a43f33af7d498dd870d2a1c3309e160fde06277
AuthorBekahHW <rhawrot@gmail.com> · 2025-09-18 08:03 -04:00
CommitterBekahHW <rhawrot@gmail.com> · 2025-09-18 08:03 -04:00
Parentsa1c3c7aad6d4

Browse the files at this changeset

1 file changed

modified docs/cli/install.mdx +65 −24
@@ -23,9 +23,41 @@
2323 cn --version
2424 ```
2525
26-## Initial Setup
26+## Two Ways to Use Continue CLI
2727
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:
2961
3062 <Steps>
3163 <Step title="Login to Continue CLI">
@@ -35,39 +67,48 @@
3567 This will open your browser to authenticate with Continue Hub.
3668 </Step>
3769
38-<Step title="Get API Key for Automation">
70+<Step title="Test Interactive Mode">
71+Start an interactive session:
72+```bash
73+cn
74+```
3975
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:
4777
48-</Step>
78+```
79+> Tell me about the CLI
80+```
4981
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 }}`
5582 </Step>
5683 </Steps>
5784
58-## First Test Run
85+## Setup for CLI (Continuous AI Mode)
5986
60-Try Continue CLI in interactive mode:
87+For automation workflows and scripting:
6188
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>
6597
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>
67104
105+<Step title="Test Async Mode">
106+Try async mode for automation:
68107 ```bash
69108 cn -p "Generate a conventional commit message for the current git changes"
70109 ```
110+</Step>
111+</Steps>
71112
72113 ## What's Next?
73114
@@ -77,11 +118,11 @@
77118 </Card>
78119
79120 <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
81122 </Card>
82123 </CardGroup>
83124
84-### Getting Help
125+## Getting Help
85126
86127 If you encounter issues:
87128