๐ฉบ Doctor
Inspect your token info and see which commands your scopes unlock.
gandi doctor is a built-in health check. It introspects your Personal Access
Token and reports its name, expiry, and granted scopes โ so you can
see at a glance which commands the token unlocks.
gandi doctorToken gandi-cli
Expires in 59 days ยท 1 entity
โ domain:view gandi domain list
โ domain:renew gandi domain renew
โ domain:tech gandi dns list / set / deleteEach scope row tells you what the token can do:
โ(green) โ the scope is granted; the listed commands will work.โ(dim) โ the scope is not granted. This is not an error โ it's usually an intentional least-privilege choice. The matching command stays locked until you re-create the token with that permission ticked.
โฐ When to run it
- After creating a token โ confirm you granted the scopes you need.
- Before a command fails โ check whether a permission is missing rather than guessing.
- When a token is about to expire โ the header shows how many days remain. Gandi has no API to renew a token, so rotate it manually before it lapses.
๐ฉน When the token is missing or rejected
If no token is configured, or Gandi rejects the one you have, doctor (and
every other command) prints step-by-step setup guidance instead of a cryptic
error. See Authentication to widen or
narrow your scopes.