--- 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 ``` Verify installation: ```bash cn --version ``` ## Initial Setup Get started is by logging in to Continue Hub for cloud-managed configurations: ```bash cn login ``` This will open your browser to authenticate with Continue Hub. For automation workflows, get an API key: 1. Visit [Continue Hub 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. 4. Use it in headless mode: `cn -p "your prompt"` Store secure credentials for CLI workflows: 1. Visit [Continue Hub Secrets](https://hub.continue.dev/settings/secrets) 2. Add your API keys and sensitive data 3. Reference in configurations with `${{ secrets.SECRET_NAME }}` ## First Test Run Try Continue CLI in interactive mode: ```bash cn "Tell me about the CLI" ``` Or test headless mode: ```bash cn -p "Generate a conventional commit message for the current git changes" ``` ## What's Next? Learn basic usage with practical examples Customize models, rules, and tools ### 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)