kedgr-cli
v0.1.0
Published
AI-powered code analysis CLI that runs in your terminal
Downloads
29
Maintainers
Readme
Kedgr CLI
AI-powered code analysis that runs in your terminal.
Installation
npm install -g @kedgr/cliQuick Start
# Login with your API key
kedgr login --api-key YOUR_API_KEY
# Scan your project
kedgr scan .
# Check status
kedgr statusCommands
kedgr scan [path]
Scan a project for issues.
Options:
--dry-run- Show what would be sent without actually sending--format <type>- Output format: text, json, sarif (default: text)--severity <level>- Minimum severity: low, medium, high, critical (default: low)
Examples:
# Scan current directory
kedgr scan
# Scan specific directory
kedgr scan ./my-project
# Dry run to see payload
kedgr scan --dry-run
# JSON output for CI/CD
kedgr scan --format jsonkedgr login
Authenticate with Kedgr.
Options:
--api-key <key>- Use API key (get from https://kedgr.xyz/settings/api-keys)
Examples:
# Login with API key
kedgr login --api-key sk_live_abc123...kedgr logout
Remove stored credentials.
kedgr status
Show authentication and project status.
Development
# Install dependencies
npm install
# Run in development mode
npm run dev scan .
# Build
npm run build
# Run built version
npm start scan .Configuration
Configuration is stored in ~/.kedgr/config.json.
You can also use environment variables:
KEDGR_API_URL- Override API URL (default: https://kedgr.xyz/api)KEDGR_API_KEY- Set API key without login command
Roadmap
- [x] Phase 0: CLI Foundation
- [ ] Phase 1: API Communication
- [ ] Phase 2: Authentication
- [ ] Phase 3: Scan Engine (filter, secrets, heuristics, summarizer)
- [ ] Phase 4: Terminal UI
- [ ] Phase 5: Git Hooks
- [ ] Phase 6: Distribution
License
MIT
