# CLI Reference

## Commands

| Command                     | Description                                          |
|----------------------------|------------------------------------------------------|
| coderrr                    | Start interactive mode                               |
| coderrr start              | Start interactive mode (explicit)                    |
| coderrr exec "<request>"  | Execute single request and exit                      |
| coderrr config             | Configure provider and API key                       |
| coderrr config --show      | View current configuration                            |
| coderrr config --clear     | Clear configuration                                   |
| coderrr rollback           | Rollback recent changes                               |

## Options

| Option                           | Description                             | Default             |
|----------------------------------|-----------------------------------------|---------------------|
| -b, --backend <url>             | Override backend URL                   | Hosted backend      |
| -d, --dir <path>                | Working directory                      | Current directory   |
| --no-auto-test                   | Disable auto test running              | Tests enabled       |
| --no-auto-retry                  | Disable self-healing                   | Retry enabled       |
| --max-retries <n>               | Max retry attempts                     | 2                   |
| --auto-commit                     | Enable git checkpoints                  | Disabled            |

## Examples

```
# Interactive mode
coderrr

# Single command
coderrr exec "Add user authentication with JWT"

# With git safety
coderrr --auto-commit

# Different directory
coderrr -d /path/to/project

# Rollback changes
coderrr rollback
```
