CLI tool for Optiq - automatic code indexing and context engine
npm install @optiqcode/clibash
npm install -g @optiqcode/cli
`
Quick Start
1. Login to Optiq
`bash
optiq login
`
2. Index your codebase
`bash
optiq index
Or specify a directory
optiq index --path ./my-project
`
3. Watch for changes (optional)
`bash
optiq watch
Or specify a directory
optiq watch --path ./my-project
`
Commands
$3
Authenticate with your Optiq account. You'll need to provide your email and password.
$3
Sign out from your Optiq account.
$3
Display your current logged-in account.
$3
Index your codebase for intelligent search and context retrieval.
Options:
- --path - Directory to index (defaults to current directory)
Features:
- Incremental indexing (only re-indexes changed files)
- Respects .gitignore patterns
- Supports multiple languages (TypeScript, JavaScript, Python, Rust, Go, Java, C/C++, and more)
$3
Watch your codebase for changes and automatically re-index modified files.
Options:
- --path - Directory to watch (defaults to current directory)
Features:
- Real-time file monitoring
- Debounced indexing (waits 5 seconds after last change)
- Automatic incremental updates
Use Cases
- AI-Powered Code Search: Use with the Optiq MCP server for intelligent codebase queries
- Context Engine: Provide relevant code context to AI assistants
- Documentation: Keep your code index up-to-date for documentation tools
- Code Analysis: Enable advanced code analysis and insights
Configuration
The CLI stores your authentication token in ~/.optiq/config.json`.