@justinhandley/ai-cli
v1.5.0
Published
CLI tool for AI operations including TypeScript file collection
Downloads
21
Maintainers
Readme
AI CLI
A command-line interface for interacting with various AI services and development tools.
Installation
Install the package globally using npm:
npm install -g @justinhandley/ai-cliOr using pnpm:
pnpm install -g @justinhandley/ai-cliDevelopment
To work on the CLI locally:
# Clone the repository
git clone https://github.com/yourusername/ai-cli.git
cd ai-cli
# Install dependencies
pnpm install
# Build the project
pnpm build
# Use local version
pnpm use-local
# Switch back to published version
pnpm use-liveKey Features
The CLI can be accessed using the ai command and provides the following features:
AI-Powered Development
- 🔍 Search GitHub and Stack Overflow with AI analysis
- 🐛 Debug code with AI assistance
- 📝 Generate code documentation
- 🔄 Collect and analyze TypeScript files
Git Worktree Management
- Create multiple isolated development environments
- Run multiple AI agents in parallel
- Easily merge changes and clean up worktrees
- Automatic dependency management and Cursor IDE integration
Configuration
- Secure API key management for multiple AI services
- Flexible AI model configuration per command
- Easy service setup with built-in help
Quick Start
- Configure your API keys:
ai config anthropic <your-key>
ai config github <your-key>- Try the search command:
ai search "your error message"- Create parallel worktrees:
ai worktree -p feature-a feature-bFor detailed usage instructions and examples, visit the full documentation.
Credits
This project was inspired by Programming in English with Cursor by John Lindquist on egghead.io. The idea of using AI to generate human-readable documentation and specifications from code has been adapted and expanded in this project to create a more comprehensive set of development tools.
