Skip to content
Pinner.xyz

CLI Doctor

Run pinner doctor when something isn't working or you want to verify your setup.

pinner doctor

Example output

Version: 0.1.0
OS: linux/amd64
Config: ~/.config/pinner/config.yaml
Config Status: Found
Endpoint: https://pinner.xyz
Memory limit: 100 (default)
Max retries: 3
Authentication: Authenticated
Shell completion: Enabled (bash, zsh)

When memory limit is set to a custom value, it displays the number in megabytes:

Memory limit: 256 MB

JSON output

For scripting or piping to other tools:

pinner doctor --json
# or
pinner doctor -j

Returns structured JSON with all diagnostic information.

What gets checked

CheckWhat it tells you
VersionCLI version and build info
OSOperating system and architecture
ConfigWhere your config file lives and whether it was found
Config StatusWhether the config file exists on disk (Found or Not found (will use defaults))
EndpointWhich API endpoint the CLI is pointing at (derived from base_endpoint and secure settings)
Memory limitCAR generation memory ceiling (shows (default) when using the built-in 100 MB default)
Max retriesMaximum retry attempts on failure
AuthenticationWhether an auth token is configured
Shell completionWhich shells have tab-completion configured (checks bash, zsh, fish; pwsh on Windows)

When to run it

  • You're reporting a bug and need to share your environment details
  • The CLI can't connect to the API
  • Authentication isn't working as expected
  • You changed your config and want to confirm it took effect
  • You're setting up the CLI on a new machine

Next steps

If pinner doctor reports a problem:

  • Authentication: Not authenticated: run pinner auth to authenticate
  • Config: Not found (will use defaults): run pinner setup to create one
  • Endpoint showing wrong URL: check pinner config get base_endpoint and pinner config get secure

See CLI Auth for authentication details, or CLI Config for configuration options.