Command Line Interface

Run RepoShift directly from your terminal. No URL needed inside a git repo.

Install

Run directly (no install)

$npx reposhift audit

Or install globally

$npm install -g reposhift

Requires Node.js 18+ and an ANTHROPIC_API_KEY environment variable.

Quick Start

From inside a git repo

$reposhift audit

Specify a repo

$reposhift audit --repo=owner/repo

Detailed output

$reposhift audit --verbose

Generation Options

Remediation plan only

$npx reposhift audit --remediation

Full documentation kit

$npx reposhift audit --generate

Specific tools

$npx reposhift audit --generate --tools=claude,cursor

Output to a directory

$npx reposhift audit --generate --out=./docs

All Options

FlagDescription
--repo=<url>Repository URL (auto-detected from git remote if omitted)
--token=<pat>Personal Access Token for private repos
--api-key=<key>Anthropic API key (alternative to env var)
--jsonOutput raw JSON instead of formatted report
--verboseShow full finding descriptions and suggestions in report
--categories=<list>Comma-separated categories to analyze (default: all 7)
--remediationGenerate only the REMEDIATION-PLAN.md (1 API call, fast)
--generateGenerate full AI documentation kit (ai/ directory + tool wrappers)
--tools=<list>AI tools: claude, cursor, copilot, windsurf, codex, gemini
--mode=<mode>Generation mode: full (default), missing (skip existing), update (improve existing)
--out=<dir>Output directory for generated files

Environment Variables

ANTHROPIC_API_KEY — Required. Claude API key.

GITHUB_TOKEN — Optional. GitHub PAT for private repos.

AZURE_DEVOPS_TOKEN — Optional. Azure DevOps PAT.

Supported Providers

GitHub: https://github.com/owner/repo or owner/repo

Azure DevOps: https://dev.azure.com/org/project/_git/repo