Files
cline/cli
celestial-vault c94c6fd8f1 Fix CLI auth state persistence with explicit flush mechanism (#7445)
Fixes issue where 'cline auth' command would lose all configuration due to process termination race condition.

Root cause: StateManager uses 500ms debounced persistence, but CLI process terminated before setTimeout callback could fire.

Solution: Implemented explicit flushPendingState() mechanism:
- Added StateManager.flushPendingState() method for immediate persistence
- Refactored to extract shared persistence logic (DRY)
- Added flushPendingState gRPC endpoint
- CLI now calls flush instead of using 5s sleep workaround

Results:
- Deterministic persistence (no race condition)
- Faster auth flow (~2s vs 7s)
- Cleaner, more maintainable code
2025-11-13 11:34:17 -08:00
..
2025-10-14 20:54:50 -07:00
2025-10-15 01:16:48 -07:00
2025-10-15 03:02:25 -07:00
2025-11-05 11:26:12 -08:00
2025-10-14 20:54:50 -07:00

Cline CLI

/_____/\ /_/\      /_______/\/__/\ /__/\ /_____/\
\:::__\/ \:\ \     \__.::._\/\::\_\\  \ \\::::_\/_
 \:\ \  __\:\ \       \::\ \  \:. `-\  \ \\:\/___/\
  \:\ \/_/\\:\ \____  _\::\ \__\:. _    \ \\::___\/_
   \:\_\ \ \\:\/___/\/__\::\__/\\. \`-\  \ \\:\____/\
    \_____\/ \_____\/\________\/ \__\/ \__\/ \_____\/

Autonomous coding agent CLI - capable of creating/editing files, running commands, using the browser, and more.

Installation

Install Cline globally using npm:

npm install -g cline

Usage

cline

This will start the Cline CLI interface where you can interact with the autonomous coding agent.

Features

  • Autonomous Coding: AI-powered code generation, editing, and refactoring
  • File Operations: Create, read, update, and delete files and directories
  • Command Execution: Run shell commands and scripts
  • Browser Automation: Interact with web pages and applications
  • Multi-Model Support: Works with Anthropic Claude, OpenAI GPT, and other AI models
  • MCP Integration: Extensible through Model Context Protocol servers
  • Project Understanding: Analyzes codebases to provide context-aware assistance

Requirements

  • Node.js 18.0.0 or higher
  • Supported platforms: macOS, Linux. Windows soon
  • Supported architectures: x64, arm64

Configuration

Cline can be configured through:

  • Environment variables
  • Configuration files
  • Command-line arguments

See the main documentation for detailed configuration options.

License

Apache-2.0 - see LICENSE for details.

Support