mirror of
https://github.com/cline/cline.git
synced 2026-09-19 10:13:34 +08:00
* build: add npm package build script with telemetry injection Add a new build script that automates the NPM package creation process with proper telemetry key injection. The script: - Validates required environment variables (TELEMETRY_SERVICE_API_KEY, ERROR_SERVICE_API_KEY) - Verifies Node.js can access environment variables - Builds Go CLI binaries for all platforms - Compiles standalone package with esbuild - Verifies telemetry keys are properly injected into compiled code - Provides colored output and detailed error messages Added npm script `build:npm` to package.json for easy invocation. This ensures consistent builds with telemetry properly configured for production deployments. * feat(hostbridge): add telemetry settings support for CLI mode Add GetTelemetrySettings and SubscribeToTelemetrySettings methods to EnvService to handle telemetry configuration in CLI mode. - GetTelemetrySettings retrieves telemetry status from POSTHOG_TELEMETRY_ENABLED environment variable - SubscribeToTelemetrySettings provides a stream for telemetry setting updates, sending initial state and keeping stream open - In CLI mode, telemetry settings are static and determined by environment variable at startup This enables proper telemetry control and monitoring in CLI environments.
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.
Links
- Website: https://cline.bot
- Documentation: https://docs.cline.bot
- GitHub: https://github.com/cline/cline
- VSCode Extension: Available in the VSCode Marketplace
- JetBrains Extension: Available in the JetBrains Marketplace
License
Apache-2.0 - see LICENSE for details.
Support
- Report issues: GitHub Issues
- Community: GitHub Discussions
- Documentation: docs.cline.bot