Command Line Interface
Run RepoShift directly from your terminal. No URL needed inside a git repo.
Install
Run directly (no install)
Or install globally
Requires Node.js 18+ and an ANTHROPIC_API_KEY environment variable.
Quick Start
From inside a git repo
Specify a repo
Detailed output
Generation Options
Remediation plan only
Full documentation kit
Specific tools
Output to a directory
All Options
| Flag | Description |
|---|---|
--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) |
--json | Output raw JSON instead of formatted report |
--verbose | Show full finding descriptions and suggestions in report |
--categories=<list> | Comma-separated categories to analyze (default: all 7) |
--remediation | Generate only the REMEDIATION-PLAN.md (1 API call, fast) |
--generate | Generate 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