codemend-cli
v0.2.2
Published
CLI for Codemend — apply AI-generated fixes to your codebase
Maintainers
Readme
codemend-cli
Command-line interface for Codemend — view production errors, check AI-generated fixes, and apply them directly from your terminal.
Install
npm install -g codemend-cliUsage
codemend <command> [flags]Commands
| Command | Description |
|---|---|
| codemend errors | List recent production errors |
| codemend live | Stream new errors in real-time |
| codemend status | Show project health overview |
| codemend show <error-id> | Show fix details for a specific error |
| codemend apply <error-id> | Apply an AI-generated fix to your codebase |
| codemend export | Export errors to JSON or CSV |
| codemend init | Save your API key to .codemendrc |
Flags
| Flag | Description |
|---|---|
| --json | Output as JSON (works with errors and show) |
| --key <value> | API key (overrides env var and .codemendrc) |
| --help | Show help |
| --version | Show version number |
Export flags
| Flag | Description |
|---|---|
| --format json\|csv | Output format (default: json) |
| --limit N | Max records to export (default: 1000) |
| --status <status> | Filter by status: new, analyzing, analyzed, fixed, ignored |
| --output <file> | Write to a file instead of stdout |
Configuration
Set your API key using any of these methods (in priority order):
- CLI flag:
codemend --key ah_xxx errors - Environment variable:
export CODEMEND_API_KEY=ah_xxx - RC file: Run
codemend initto save your key to.codemendrcin the current directory, or place a.codemendrcin your home directory for global use.
Get your API key from codemend.ai/dashboard/settings.
Examples
# List recent errors
codemend errors
# Watch for new errors in real-time
codemend live
# Check project health
codemend status
# See the AI fix for a specific error
codemend show abc123-def456
# Apply the fix directly to your codebase
codemend apply abc123-def456
# Export all analyzed errors to CSV
codemend export --format csv --status analyzed --output errors.csv
# Use inline API key
CODEMEND_API_KEY=ah_xxx codemend errorsLicense
MIT — Knod, Inc.
