Skip to Content
New to Genbox? Check out our Getting Started guide
Commandsdoctor

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

OptionDescription
--fixAttempt to fix detected issues
--verboseShow detailed diagnostic output

Examples

Run Diagnostics

gb doctor

Fix Issues

gb doctor --fix

Verbose Output

gb doctor --verbose

Diagnostic 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
  • --fix is safe to run
  • Some fixes require gb login
  • Share output when seeking support

See Also

Last updated on