--- title: "Install Continue CLI" description: "Get Continue CLI installed and configured for command-line AI coding assistance and automation" sidebarTitle: "Install" --- Make sure you have [Node.js 18 or higher installed](https://nodejs.org/en/download/). ## Installation Install Continue CLI globally using npm: ```bash npm i -g @continuedev/cli ``` ## Two Ways to Use Continue CLI **Quick Overview**: Continue CLI works in two modes - TUI for interactive conversations or headless for automated commands. **Interactive development sessions** Start a conversation with AI in your terminal: ```bash cn > @src/app.js Generate unit tests for this component ``` Perfect for exploration, debugging, and iterative development. **Automation and scripting** Single commands that return results: ```bash cn -p "Generate a commit message for current changes" cn -p "Review the last 5 commits for issues" ``` Perfect for CI/CD, git hooks, and automated workflows. ## Setup For interactive development and exploration: ```bash cn login ``` This will open your browser to authenticate with Continue Mission Control. Start an interactive session: ```bash cn ``` Try asking a question: ``` > Tell me about the CLI ``` For automation workflows and scripting: For automation workflows, get an API key: 1. Visit [Continue Mission Control API Keys](https://hub.continue.dev/settings/api-keys) 2. Click **"+ New API Key"** 3. Copy the API key immediately (you won't see it again!) 4. Login using your Continue account Store secure credentials for CLI workflows: 1. Visit [Continue Mission Control Secrets](https://hub.continue.dev/settings/secrets) 2. Add your API keys and sensitive data 3. Reference in configurations with `${{ secrets.SECRET_NAME }}` Try headless mode for automation: ```bash cn -p "Generate a conventional commit message for the current git changes" ``` ## What's Next? Learn basic usage with practical examples Build automated workflows with Continue CLI ## Getting Help If you encounter issues: - Ask for help in [our discussions](https://github.com/continuedev/continue/discussions) - Report bugs on [GitHub](https://github.com/continuedev/continue)