|
|
1 year ago | |
|---|---|---|
| .. | ||
| api | 1c471bd3cb Add a command-line cline powered by deno | 1 year ago |
| core | 1c471bd3cb Add a command-line cline powered by deno | 1 year ago |
| tools | 1c471bd3cb Add a command-line cline powered by deno | 1 year ago |
| README.md | 1c471bd3cb Add a command-line cline powered by deno | 1 year ago |
| deno.d.ts | 1c471bd3cb Add a command-line cline powered by deno | 1 year ago |
| deno.jsonc | 1c471bd3cb Add a command-line cline powered by deno | 1 year ago |
| deno.lock | 1c471bd3cb Add a command-line cline powered by deno | 1 year ago |
| deps.ts | 1c471bd3cb Add a command-line cline powered by deno | 1 year ago |
| mod.ts | 1c471bd3cb Add a command-line cline powered by deno | 1 year ago |
| types.d.ts | 1c471bd3cb Add a command-line cline powered by deno | 1 year ago |
A command-line interface for Cline, powered by Deno.
Install the CLI globally:
cd cli
deno task install
If you get a PATH warning during installation, add Deno's bin directory to your PATH:
echo 'export PATH="$HOME/.deno/bin:$PATH"' >> ~/.bashrc # or ~/.zshrc
source ~/.bashrc # or ~/.zshrc
cline <task> [options]
The CLI implements several security measures:
File Operations:
Command Execution:
Required Permissions:
-m, --model <model> - LLM model to use (default: "anthropic/claude-3.5-sonnet")-k, --key <key> - OpenRouter API key (required, or set OPENROUTER_API_KEY env var)-h, --help - Display help for commandAnalyze code:
export OPENROUTER_API_KEY=sk-or-v1-...
cline "Analyze this codebase"
Create files:
cline "Create a React component"
Run allowed command:
cline "Run npm install"
Run non-allowlisted command (will prompt for decision):
cline "Run yarn install"
# Responds with:
# Warning: Command not in allowlist
# Command: yarn install
# Do you want to run this command? (y/n/always)
The CLI is built with Deno. Available tasks:
# Run in development mode
deno task dev "your task here"
# Install globally
deno task install
# Type check the code
deno task check