Skip to content

doctor

portcheck doctor

Check a project's ports against .portcheck.yaml

Synopsis

Check the ports listed in the project's .portcheck.yaml, which is found by walking up from the current directory, and explain how to fix any problem.

Each entry expects its port to be free (nothing may listen, so the project can use it) or open (a service such as a database must accept connections).

Exit status is 0 when every check passes, 1 when any fails, and 2 when the configuration is missing or invalid.

portcheck doctor [flags]

Examples

  portcheck doctor
  portcheck doctor --json
  portcheck doctor --config ./deploy/.portcheck.yaml

Options

      --config string   config file (default: nearest .portcheck.yaml)
  -h, --help            help for doctor

Options inherited from parent commands

      --json                shorthand for --output json
      --log-format string   log format: text or json (default "text")
      --no-color            disable colors (also honors NO_COLOR)
  -o, --output string       output format: table, plain, csv, json (default: table on a terminal, plain otherwise)
  -v, --verbose             log diagnostic details to stderr

SEE ALSO

  • portcheck - See what's using your ports, find free ones, and free them up