Cline - Cheatsheet
Overview
Quick reference: Essential commands, configuration options, and workflow patterns for effective Cline usage
Basic Commands
File Operations
/create [filename]- Create new file/edit [filename]- Edit existing file/delete [filename]- Delete file/rename [old] [new]- Rename file/list [directory]- List directory contents
Project Commands
/init [project-type]- Initialize project/build- Build project/test- Run tests/lint- Run linting/deploy- Deploy project
Task Patterns
Feature Implementation
Implement [feature name]:
1. Create necessary files
2. Add core functionality
3. Write comprehensive tests
4. Update documentation
5. Add error handling
Bug Fixes
Fix [issue description]:
1. Analyze the problem
2. Identify root cause
3. Implement fix
4. Add regression tests
5. Update related docs
Configuration Options
Model Settings
{
"model": "claude-3-sonnet",
"temperature": 0.1,
"max_tokens": 4000,
"timeout": 30
}
Workspace Settings
{
"auto_save": true,
"backup_files": true,
"max_files": 100,
"excluded_dirs": ["node_modules", ".git"]
}
Advanced Workflows
Multi-Step Tasks
Complex refactoring:
"Modernize codebase:
- Convert to ES6+ syntax
- Add TypeScript types
- Implement error handling
- Add comprehensive tests
- Update documentation"
Project Setup
Full stack app setup:
- Initialize React frontend
- Set up Express backend
- Configure database
- Add authentication
- Set up CI/CD
Best Practices
✅ Effective Usage
- Be specific about requirements
- Break down complex tasks
- Specify coding standards
- Include test requirements
- Review all changes
⚠️ Cautions
- Always backup before major changes
- Test thoroughly before deployment
- Review security implications
- Validate business logic
- Check performance impact