gb doctor
Check CLI setup and diagnose issues.
Synopsis
gb doctor [options]Description
Runs diagnostic checks on your Genbox CLI installation, configuration, and connectivity. Helps identify and fix common issues.
Options
| Option | Description |
|---|---|
--fix | Attempt to fix detected issues |
--verbose | Show detailed diagnostic output |
Examples
Run Diagnostics
gb doctorFix Issues
gb doctor --fixVerbose Output
gb doctor --verboseDiagnostic Output
Healthy System
Genbox Doctor
Checking CLI setup...
β Node.js version v20.10.0 (required: β₯18)
β CLI version 1.0.135 (latest)
β npm global install /usr/local/bin/genbox
Checking authentication...
β Logged in alice@example.com
β Token valid expires in 28 days
β SSH key ~/.ssh/genbox_ed25519
Checking connectivity...
β API reachable https://api.genbox.dev (45ms)
β SSH reachable ssh.genbox.dev:22
Checking project...
β genbox.yaml found
β Configuration valid
β Git repository clean
βββββββββββββββββββββββββββββββββββββββββββββββ
All checks passed! βWith Issues
Genbox Doctor
Checking CLI setup...
β Node.js version v20.10.0 (required: β₯18)
β CLI version 1.0.130 (outdated, latest: 1.0.135)
β npm global install /usr/local/bin/genbox
Checking authentication...
β Logged in alice@example.com
β Token expiring expires in 3 days
β SSH key not found
Run 'gb login' to regenerate SSH key
Checking connectivity...
β API reachable https://api.genbox.dev (45ms)
β SSH reachable ssh.genbox.dev:22
Checking project...
β genbox.yaml found
β Configuration 2 errors
Run 'gb validate' for details
βββββββββββββββββββββββββββββββββββββββββββββββ
Found 3 issues (1 warning, 2 errors)
Run 'gb doctor --fix' to attempt automatic fixes.Checks Performed
CLI Setup
- Node.js version (β₯18 required)
- CLI version (outdated check)
- Installation location
Authentication
- Login status
- Token validity
- SSH key presence
Connectivity
- API endpoint reachable
- SSH port accessible
- Network latency
Project
- genbox.yaml exists
- Configuration valid
- Git status
Auto-Fix
--fix can automatically:
- Update outdated CLI
- Regenerate SSH keys
- Refresh expired tokens
- Fix common config issues
Notes
- Run when experiencing issues
--fixis safe to run- Some fixes require
gb login - Share output when seeking support
See Also
gb update- Update CLIgb login- Fix auth issuesgb validate- Fix config issues
Last updated on