Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Doctor: Environment Diagnostics

fledge doctor checks your environment for issues that might cause problems. Run it when something isn’t working right, or proactively before starting a new project.

Usage

fledge doctor
fledge doctor --json

What It Checks

Doctor auto-detects your project type and checks relevant tools:

Toolchain (project-type-specific):

Project typeWhat it checks
Rustrustc, cargo, cargo-clippy, rustfmt
Node.jsnode, npm or yarn
Gogo
Pythonpython3 or python, pip
Rubyruby, gem, bundler
Java (Gradle)java, gradle
Java (Maven)java, mvn
Swiftswift, swiftlint (optional)

Dependencies — checks for lockfiles and build artifacts (e.g. Cargo.lock, node_modules/, go.sum).

Gitgit installed, repository initialized, remote configured, working tree status.

AIclaude CLI installed (enables fledge review and fledge ask).

Output

Doctor reports each check as passing or failing:

  • Pass (✅): tool is installed and working, with version info
  • Fail (❌): tool is missing or errored, with a suggested fix command

When to Run It

  • Before your first fledge templates init to make sure your environment is ready
  • When fledge run can’t find the right command for your project type
  • When GitHub commands (issues, prs, checks, work pr) fail with auth errors
  • After upgrading your toolchain or switching machines

JSON Output

fledge doctor --json

Returns a structured report for scripting or CI checks. Each entry includes the check name, status, version (if applicable), and any diagnostic message.