| title | CLI Reference - Jarvy | |
|---|---|---|
| description | Complete reference for all Jarvy CLI commands, flags, and exit codes. | |
| tags |
|
Provision the environment from a jarvy.toml configuration file.
jarvy setup # Default: ./jarvy.toml
jarvy setup --file path/to/config # Custom config path
jarvy setup --from https://... # Fetch config from URL
jarvy setup --dry-run # Show what would happen
jarvy setup --plan # Alias for --dry-run
jarvy setup --role backend # Override role for this run
jarvy setup --no-hooks # Skip all hook execution
jarvy setup --ci # Force CI mode (non-interactive)
jarvy setup --jobs 8 # Parallel jobs (default: 4)
jarvy setup --sequential # Force sequential installation| Flag | Description |
|---|---|
-f, --file |
Path to config file (default: ./jarvy.toml) |
--from <URL> |
Fetch config from URL |
--role <ROLE> |
Override role assignment |
--dry-run / --plan |
Preview without executing |
--no-hooks |
Skip hook execution |
--ci |
Force CI mode |
--no-ci |
Force interactive mode in CI |
-j, --jobs |
Parallel install jobs (default: 4) |
--sequential |
Equivalent to --jobs 1 |
--ignore-missing-deps |
Suppress dependency warnings |
-q, --quiet |
Suppress all output except errors |
-v, --verbose |
Verbose output (-vv for debug, -vvv for trace) |
--profile |
Enable performance profiling |
Create a jarvy.toml interactively or from a template.
jarvy init # Interactive prompts
jarvy init --template react # Use a template
jarvy init --template go-api --non-interactive
jarvy init --stdout # Print to stdout instead of fileDiagnose environment health.
jarvy doctor # Check all configured tools
jarvy doctor --tools node,docker # Check specific tools
jarvy doctor --extended # Full system dashboard
jarvy doctor --format json # Machine-readable output
jarvy doctor --report report.md # Export as markdownPreview changes before running setup (what's missing, outdated, or satisfied).
jarvy diff # Show all tools
jarvy diff --changes-only # Only show needed changes
jarvy diff --format jsonSearch available tools.
jarvy search docker # Fuzzy search
jarvy search --all # List all 174+ tools
jarvy search --format jsonGet detailed information about a specific tool.
jarvy explain docker # Tool details, platforms, deps
jarvy explain node --file jarvy.toml # Include config context (roles, version)
jarvy explain kubectl --format jsonList all supported tools or output the tool index.
jarvy tools # List all tools
jarvy tools --index # Full tool index
jarvy tools --default-hooks # Tools with built-in hooks
jarvy tools --index --format json # JSON tool indexValidate a jarvy.toml configuration file.
jarvy validate # Validate ./jarvy.toml
jarvy validate --from https://... # Validate remote config
jarvy validate --strict # Treat warnings as errorsCheck for deprecated patterns and suggest fixes.
jarvy migrate # Dry-run report
jarvy migrate --apply # Apply migrations
jarvy migrate --format jsonGenerate a jarvy.toml from currently installed tools.
jarvy export # Detect and export
jarvy export --all # Include all detected tools
jarvy export --tools node,docker # Specific tools only
jarvy export --format jsonGenerate a default jarvy.toml in the current directory.
jarvy configureManage role-based configurations.
jarvy roles list # List available roles
jarvy roles list -v # Verbose with tool counts
jarvy roles show frontend # Show role details
jarvy roles show frontend --resolved # Include inherited tools
jarvy roles show frontend --inheritance # Show inheritance chain
jarvy roles diff frontend backend # Compare two rolesManage team configuration sources.
jarvy team list # List configured sources
jarvy team add <url> # Add a team config source
jarvy team remove <name> # Remove a sourceManage environment variables from config.
jarvy env # Apply all env config
jarvy env --dotenv # Generate .env file only
jarvy env --shell # Update shell rc file only
jarvy env --dry-run # Preview changes
jarvy env --export # Output export statementsDetect configuration drift.
jarvy drift check # Detect drift (exit 1 if found)
jarvy drift check --format json # JSON output for CI
jarvy drift status # Show baseline state
jarvy drift accept # Accept current state
jarvy drift accept --tools node # Accept specific tools
jarvy drift fix # Remediate issues
jarvy drift fix --dry-run # Preview fixesRun available security scanners and produce a unified report.
jarvy audit # Run all available scanners
jarvy audit --tool betterleaks # Run specific scanner
jarvy audit --format jsonSupported scanners: betterleaks, gitleaks, trufflehog, trivy, grype, semgrep, checkov, tfsec.
Generate CI configuration files.
jarvy ci-config github # GitHub Actions workflow
jarvy ci-config gitlab # GitLab CI config
jarvy ci-config circleci # CircleCI config
jarvy ci-config --dry-run # Preview without writingShow detected CI environment information.
jarvy ci-infoCheck for and install Jarvy updates.
jarvy update # Check and install latest
jarvy update check # Check without installing
jarvy update --version 1.2.3 # Install specific version
jarvy update --channel beta # Use beta channel
jarvy update --rollback # Rollback to previous version
jarvy update history # Show update historyUpgrade configured tools to latest versions.
jarvy upgrade # Upgrade all tools
jarvy upgrade --tools node,docker # Upgrade specific tools
jarvy upgrade --dry-run # Preview upgradesDeep diagnosis for a specific tool.
jarvy diagnose docker # Full diagnosis
jarvy diagnose node --fix # Attempt auto-fixOutput the JSON Schema for jarvy.toml.
jarvy schema # Print to stdout
jarvy schema --output schema.json # Write to fileUse this for editor autocomplete. In VS Code, add to .vscode/settings.json:
{
"json.schemas": [{
"fileMatch": ["jarvy.toml"],
"url": "./schema.json"
}]
}Generate shell completions.
jarvy completions bash # Bash completions
jarvy completions zsh # Zsh completions
jarvy completions fish # Fish completions
jarvy completions --instructions # Show install instructionsView and manage log files.
jarvy logs view # View recent logs
jarvy logs view --lines 50 # Last 50 lines
jarvy logs stats # Log statistics
jarvy logs clean # Remove old logsGenerate debug tickets for support.
jarvy ticket create # Generate diagnostic bundle
jarvy ticket create --tool docker # Tool-specific ticket
jarvy ticket list # List existing ticketsStart the MCP server for AI agent integration. See the MCP Server Guide.
jarvy mcp| Code | Name | Meaning |
|---|---|---|
| 0 | EXIT_SUCCESS |
Command completed successfully |
| 2 | CONFIG_ERROR |
jarvy.toml is missing or malformed |
| 3 | PREREQ_MISSING |
Required package manager not found |
| 4 | NETWORK_TIMEOUT |
Network or proxy failure |
| 5 | PERMISSION_REQUIRED |
Needs elevated privileges (sudo) |
| 6 | INCOMPATIBLE_OS_ARCH |
Unsupported OS or architecture |
| 7 | HOOK_FAILED |
A hook script failed |
See Error Codes for detailed remediation steps.
- CI detection: Jarvy auto-detects CI environments (
CI=true) and switches to non-interactive mode - Config discovery: Looks for
jarvy.tomlin the current directory by default - Idempotent: Safe to run repeatedly — skips tools that are already installed and satisfied
- Platform-aware: Automatically selects the right package manager for each OS