This document covers GitCo's core CLI commands: init, sync, analyze, discover, status, activity, logs, performance, version, help, completion, and validate-repo.
Initialize GitCo configuration.
gitco init [OPTIONS]
Options:
--interactive, -i Interactive setup mode
--non-interactive, -n Non-interactive setup with defaults
--force, -f Force reinitialization
--template, -t <path> Use custom template for configuration
--config-path <path> Custom configuration pathExamples:
# Interactive setup
gitco init --interactive
# Non-interactive setup
gitco init --non-interactive
# Force reinitialization
gitco init --forceSynchronize repositories with upstream.
gitco sync [OPTIONS] [REPOSITORIES]
Options:
--repo, -r <name> Sync specific repository
--batch, -b Batch sync all repositories
--analyze, -a Run analysis after sync
--stash Stash local changes before sync
--force, -f Force sync even if conflicts
--max-repos <count> Maximum repositories per batch
--export <file> Export sync report
--quiet, -q Suppress output
--log, -l <file> Log to file
--detailed-log Use detailed log format with function names and line numbers
--max-log-size <MB> Maximum log file size in MB before rotation (default: 10)
--log-backups <count> Number of backup log files to keep (default: 5)
--max-workers, -w <num> Maximum concurrent workers for batch processing (default: 4)Examples:
# Sync all repositories
gitco sync
# Sync specific repository
gitco sync --repo django
# Sync with analysis
gitco sync --analyze
# Batch sync with export
gitco sync --batch --export sync-report.jsonAnalyze repository changes using AI.
gitco analyze [OPTIONS] [REPOSITORIES]
Options:
--repo, -r <name> Analyze specific repository
--repos <names> Analyze multiple repositories (comma-separated)
--detailed, -d Detailed analysis
--prompt, -p <text> Custom analysis prompt
--model <model> LLM model to use
--provider <provider> LLM provider to use (openai only)
--no-llm Skip LLM analysis
--max-commits <count> Maximum commits to analyze
--export, -e <file> Export analysis results
--quiet, -q Suppress outputExamples:
# Analyze repository
gitco analyze --repo django
# Detailed analysis with custom prompt
gitco analyze --repo django --detailed --prompt "Focus on security implications"
# Analyze without LLM
gitco analyze --repo django --no-llmDiscover contribution opportunities.
gitco discover [OPTIONS]
Options:
--skill, -s <skill> Filter by skill
--label, -l <label> Filter by GitHub label
--repos <repos> Filter by repositories
--min-confidence, -c <float> Minimum confidence threshold (0.0-1.0)
--limit, -n <count> Maximum results to return
--personalized, -p Use personalized recommendations
--show-history, -h Show contribution history analysis
--export, -e <file> Export discovery results
--quiet, -q Suppress outputExamples:
# Discover all opportunities
gitco discover
# Filter by skill
gitco discover --skill python
# Filter by label
gitco discover --label "good first issue"
# Personalized recommendations
gitco discover --personalized --limit 10Check repository health and status.
gitco status [OPTIONS]
Options:
--repo, -r <name> Show specific repository status
--detailed, -d Detailed status report
--overview, -o Overview status
--activity, -a Show repository activity dashboard
--filter <status> Filter by status (healthy, needs_attention, critical)
--sort <field> Sort by field (health, activity, stars, forks)
--export <file> Export status report
--quiet, -q Suppress outputExamples:
# Check all repositories
gitco status
# Check specific repository
gitco status --repo django
# Detailed status
gitco status --detailed
# Filter by health
gitco status --filter healthy
# Sort by forks count
gitco status --sort forks
# Export status
gitco status --export status.json
# Quiet mode for automation
gitco status --quiet --export status.jsonView repository activity dashboard.
gitco activity [OPTIONS]
Options:
--repo, -r <name> Activity for specific repository
--detailed, -d Detailed activity report
--filter <level> Filter by activity level (high, moderate, low)
--sort <field> Sort by field (activity, engagement, commits, contributors)
--export <file> Export activity report
--quiet, -q Suppress outputExamples:
# View activity dashboard
gitco activity
# Detailed activity
gitco activity --detailed
# Activity for specific repository
gitco activity --repo django
# Sort by contributors count
gitco activity --sort contributors
# Export activity
gitco activity --export activity.json
# Quiet mode for automation
gitco activity --quiet --export activity.jsonView and manage logs.
gitco logs [OPTIONS]
Options:
--export <file> Export logs
--lines <count> Number of lines to show
--follow, -f Follow log fileExamples:
# Export logs
gitco logs --export logs.json
# Show last 100 lines
gitco logs --lines 100View performance metrics.
gitco performance [OPTIONS]
Options:
--detailed, -d Detailed performance metrics
--export <file> Export performance dataExamples:
# View performance metrics
gitco performance
# Detailed metrics
gitco performance --detailed
# Export performance data
gitco performance --export performance.jsonShow GitCo version.
gitco version
# Output example:
# GitCo version 0.1.0Get help for commands.
gitco help [COMMAND]
Examples:
gitco help Show general help
gitco help sync Show help for sync command
gitco help analyze Show help for analyze commandGenerate or install shell completion scripts.
gitco completion [OPTIONS]
Options:
--shell, -s <shell> Shell type (bash, zsh)
--output, -o <file> Output file path (default: auto-detect)
--install, -i Install completion scriptExamples:
# Generate bash completion script
gitco completion --shell bash
# Generate and save to file
gitco completion --shell zsh --output ~/.zshrc
# Install completion script
gitco completion --shell bash --installValidate repository structure and configuration.
gitco validate-repo [OPTIONS] [REPOSITORIES]
Options:
--repo, -r <name> Validate specific repository
--all, -a Validate all repositories
--detailed, -d Detailed validation report
--path <path> Validate repository at path
--recursive Recursive validation
--export <file> Export validation reportExamples:
# Validate specific repository
gitco validate-repo --repo django
# Validate all repositories
gitco validate-repo --all
# Validate at specific path
gitco validate-repo --path ~/code/django