> ## Documentation Index
> Fetch the complete documentation index at: https://docs.depfixer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI Overview

> All DepFixer commands at a glance

# CLI Overview

## Commands

| Command                | Description                        | Auth Required          |
| ---------------------- | ---------------------------------- | ---------------------- |
| `npx depfixer`         | Smart analysis with fix flow       | No (audit) → Yes (fix) |
| `npx depfixer migrate` | Interactive framework migration    | Yes                    |
| `npx depfixer fix`     | Apply fixes from previous analysis | Yes                    |
| `npx depfixer login`   | Authenticate with DepFixer         | No                     |
| `npx depfixer logout`  | Clear stored credentials           | No                     |
| `npx depfixer whoami`  | Show account information           | Yes                    |

## Global Options

| Option          | Description                                    |
| --------------- | ---------------------------------------------- |
| `--path <dir>`  | Project directory (default: current directory) |
| `--json`        | Output results as JSON                         |
| `--ci`          | CI mode with exit codes                        |
| `-v, --version` | Show version number                            |
| `-h, --help`    | Show help                                      |

## Environment Variables

| Variable         | Description                                                    |
| ---------------- | -------------------------------------------------------------- |
| `DEPFIXER_TOKEN` | API key for CI/CD pipelines (see [CI Mode](/cli/auth/ci-mode)) |

## Exit Codes

| Code | Meaning                                          |
| ---- | ------------------------------------------------ |
| `0`  | Success - no issues or all issues fixed          |
| `1`  | Issues found (critical/high severity in CI mode) |
| `2`  | Critical error (auth failure, network error)     |

## Examples

### Basic Analysis

```bash theme={null}
# Analyze current directory
npx depfixer

# Analyze specific project
npx depfixer --path ./my-project
```

### CI Integration

```bash theme={null}
# Run in CI with exit codes
npx depfixer --ci

# JSON output for parsing
npx depfixer --json
```

### Migration

```bash theme={null}
# Interactive framework upgrade
npx depfixer migrate
```

### Authentication

```bash theme={null}
# Log in
npx depfixer login

# Check account
npx depfixer whoami

# Log out
npx depfixer logout
```

## Requirements

* **Node.js**: 18.0.0 or higher
* **npm**: 8.0.0 or higher (for `npx`)

## GitHub

Report bugs, request features, and join discussions on our GitHub:

* [GitHub Repository](https://github.com/depfixer/CLI)
* [Report a Bug](https://github.com/depfixer/CLI/issues/new?template=bug_report.md)
* [Request a Feature](https://github.com/depfixer/CLI/issues/new?template=feature_request.md)

<Note>
  **Open Source Roadmap**: We're planning to open-source the CLI in the future. Follow our GitHub for updates!
</Note>
