| 1 | --- |
| 2 | title: "Continue CLI Quick Start" |
| 3 | description: "Get hands-on experience with Continue CLI through practical examples and common use cases" |
| 4 | sidebarTitle: "Quick Start" |
| 5 | --- |
| 6 | |
| 7 | Get hands-on experience with Continue CLI through common development scenarios. |
| 8 | |
| 9 | <Tabs> |
| 10 | <Tab title="Interactive Mode"> |
| 11 | Interactive mode (`cn` command) lets you have a back-and-forth conversation |
| 12 | with Continue about your codebase. You can ask questions, get explanations, |
| 13 | and request code changes. |
| 14 | </Tab> |
| 15 | <Tab title="Headless Mode"> |
| 16 | Headless mode (`-p` flag) is designed for automation and scripting. It |
| 17 | allows you to run commands without user interaction, making it suitable for |
| 18 | CI/CD pipelines and other automated workflows. |
| 19 | </Tab> |
| 20 | </Tabs> |
| 21 | |
| 22 | ## Get Started |
| 23 | |
| 24 | Make sure you have [Continue CLI installed](/cli/install) and are in a project directory. |
| 25 | |
| 26 | ```bash |
| 27 | # Navigate to your project directory |
| 28 | cd your-awesome-project |
| 29 | |
| 30 | # Start Continue CLI in interactive mode |
| 31 | cn |
| 32 | ``` |
| 33 | |
| 34 | This will launch an interactive chat session. You can also run commands directly in headless mode: |
| 35 | |
| 36 | ```bash |
| 37 | # Run a command in headless mode |
| 38 | cn -p "Fix lint issues in the src/ directory" |
| 39 | ``` |
| 40 | |
| 41 | ### Available Slash Commands |
| 42 | |
| 43 | Common slash commands available in CLI: |
| 44 | |
| 45 | - `/clear` - Clear the chat history |
| 46 | - `/compact` - Summarize chat history into a compact form |
| 47 | - `/config` - Switch configuration or organization |
| 48 | - `/exit` - Exit the chat |
| 49 | - `/fork` - Start a forked chat session from the current history |
| 50 | - `/help` - Show help message |
| 51 | - `/info` - Show session information |
| 52 | - `/init` - Create an AGENTS.md file |
| 53 | - `/login` - Authenticate with your account |
| 54 | - `/logout` - Sign out of your current session |
| 55 | - `/mcp` - Manage MCP server connections |
| 56 | - `/model` - Switch between available chat models |
| 57 | - `/resume` - Resume a previous chat session |
| 58 | - `/whoami` - Check who you're currently logged in as |
| 59 | |
| 60 | <Info>Use `/help` to see all available commands.</Info> |
| 61 | |
| 62 | ## Guides to Continuous AI with CLI |
| 63 | |
| 64 | <CardGroup cols={3}> |
| 65 | <Card title="Create Your First Workflow" href="/guides/posthog-github-continuous-ai"> |
| 66 | Automate issue creation and labeling with PostHog data |
| 67 | </Card> |
| 68 | |
| 69 | <Card title="How to Use the CLI" href="/guides/cli"> |
| 70 | Learn more about Continue CLI features and capabilities |
| 71 | </Card> |
| 72 | |
| 73 | <Card title="Continous AI: a Developer's Guide" href="/guides/continuous-ai"> |
| 74 | Build custom tools and integrations using `cn` |
| 75 | </Card> |
| 76 | </CardGroup> |