Getting Started with AI CLI
AI CLI is a powerful command-line interface that brings AI capabilities to your development workflow. It helps you search for solutions, debug code, generate documentation, and more.
Installation
Install the package globally using npm:
npm install -g @justinhandley/ai-cli
Or using pnpm:
pnpm install -g @justinhandley/ai-cli
Quick Start
- First, configure your API keys:
# Configure Anthropic (Claude) API key
ai config anthropic your-api-key
# Configure GitHub token (for search functionality)
ai config github your-github-token
- Try out some basic commands:
# Search for code solutions
ai search "how to handle TypeScript errors"
# Generate documentation for a file
ai describe src/myfile.ts
# Debug your code
ai debug
# Collect TypeScript files
ai collect ./src
Next Steps
For Developers
Are you interested in contributing to AI CLI? Check out our For Developers section for information about:
- Setting up the development environment
- Contributing guidelines
- Project structure
- Building and testing