installation.mdx 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ---
  2. title: "Installation"
  3. description: "Install Cline CLI and authenticate with your account"
  4. ---
  5. ## Prerequisites
  6. Cline CLI requires Node.js version 20 or higher. We recommend using Node.js 22 for the best experience.
  7. To check your Node.js version:
  8. ```bash
  9. node --version
  10. ```
  11. ## Installation
  12. ```bash
  13. npm install -g cline
  14. ```
  15. After installation, authenticate with your Cline account:
  16. ```bash
  17. cline auth
  18. ```
  19. This starts an authentication wizard to sign you in and configure your preferred AI model provider.
  20. ## Quick Start
  21. Get started with Cline in seconds:
  22. ```bash
  23. cline
  24. ```
  25. That's it! Running `cline` in any directory starts an interactive session where you can chat with the AI agent. Type your task, review the plan, and type `/act` when ready to execute.
  26. For even faster execution without interaction:
  27. ```bash
  28. cline "Add unit tests to utils.js"
  29. ```
  30. This runs Cline with a single command, perfect for quick tasks or automation.
  31. <Tip>
  32. New to Cline CLI? Start with interactive mode (`cline`) to see how it works. Once comfortable, explore [the three core flows](/cline-cli/three-core-flows) for advanced usage patterns.
  33. </Tip>