CLI tool for Gandi.net API v5.
- Manage domains, DNS records, email, SSL certificates, and organizations
- Multiple output formats: table, JSON, plain text
- Sandbox mode for safe testing
- Config file or environment variable authentication
Run directly without installing:
uvx gandi-v5 --helppip install gandi-v5Or install from source:
pip install git+https://github.com/lyhcode/gandi-v5Set your Gandi Personal Access Token (PAT):
export GANDI_PAT=your-token-hereOr save it to config:
gandi-v5 auth login
gandi-v5 auth status # verify authentication
gandi-v5 auth set-org # set default organization
gandi-v5 auth logout # remove saved token# Domains
gandi-v5 domain list
gandi-v5 domain info example.com
gandi-v5 domain check myname.com
# DNS Records
gandi-v5 dns list example.com
gandi-v5 dns list example.com --type A --name www
gandi-v5 dns get example.com www A
gandi-v5 dns create example.com www A 1.2.3.4
gandi-v5 dns update example.com www A --value 5.6.7.8
gandi-v5 dns delete example.com www A
gandi-v5 dns export example.com
# Email Forwarding
gandi-v5 email forward list example.com
gandi-v5 email forward create example.com info user@gmail.com
gandi-v5 email forward delete example.com info
# Mailboxes
gandi-v5 email mailbox list example.com
gandi-v5 email mailbox info example.com <mailbox-id>
# SSL Certificates
gandi-v5 cert list
gandi-v5 cert info <cert-id>
# Organizations
gandi-v5 org list
gandi-v5 org info <org-id>
gandi-v5 org whoami
# Output formats
gandi-v5 -o json domain list
gandi-v5 -o plain domain list
gandi-v5 -o table domain list # defaultUse --sandbox to test against the Gandi Sandbox API:
gandi-v5 --sandbox domain listConfig file: ~/.config/gandi-cli/config.toml
[auth]
pat = "your-token"
[defaults]
output = "table"
sharing_id = "your-org-id"The skills/ directory contains Claude Code skill files for developing and extending this CLI. They include API endpoint references, command patterns, and business rules for each Gandi API area.
MIT