What is CLI?
CLI is a command-line tool that discovers and catalogs all CLI tools available on your system. It scans your PATH, detects package managers (npm, pip, Homebrew, cargo, gem), and links tools to their source packages.
Path Scanning
Discover all CLI tools across your $PATH in seconds
Package Detection
Identify tools from npm, pip, Homebrew, cargo, and gem
Smart Linking
Connect CLI tools to their source packages automatically
AI Optimized
Export JSON catalogs for AI agent consumption
Quick Start
# Clone the repository
git clone https://github.com/cli-ai-org/cli.git
cd cli
# Build
go build -o cli .
# List all CLI tools
./cli list
# List with details
./cli list --all
# Export for AI agents
./cli export --pretty --output tools.json
# List packages
./cli packages
Installation
From Source
git clone https://github.com/cli-ai-org/cli.git
cd cli
go build -o cli .
./cli help
Using Go
go install github.com/cli-ai-org/cli@latest
Features
- 🚀 Fast scanning of thousands of CLI tools
- 📊 Comprehensive package manager support
- 💾 JSON export for programmatic access
- 📝 Optional metadata collection (versions, help text)
- 🎯 Designed for AI agent integration
- 🔧 Debug mode for troubleshooting
Use Cases
- AI Agents: Let AI discover and use available CLI tools
- System Auditing: Catalog all installed CLI tools
- Package Management: Track which packages provide which tools
- Development: Quickly find available tools for automation
Documentation
- README - General overview
- Commands Reference - All available commands
- AI Agent Usage - Integration guide
- Package Detection - How it works
Contributing
This is a beta release! We welcome feedback and contributions. Please visit our GitHub repository to report issues or suggest features.