> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fly.io/llms.txt
> Use this file to discover all available pages before exploring further.

# fly doctor

The DOCTOR command allows you to debug your Fly environment

## Usage

```
fly doctor [flags]
```

## Available Commands

* [diag](/flyctl/cmd/fly_doctor_diag)	 - Send diagnostic information about your applications back to Fly.io.

## Options

```
  -a, --app string      Application name
  -c, --config string   Path to application configuration file
  -h, --help            help for doctor
  -j, --json            JSON output
  -o, --org string      The name of the organization to use for WireGuard tests. (default "personal")
  -v, --verbose         Print extra diagnostic information.
```

## Global Options

```
  -t, --access-token string   Fly API Access Token
      --debug                 Print additional logs and traces
```

## See Also

* [fly](/flyctl/cmd/fly_help)	 - The Fly.io command line interface
