Skip to content

kud/gandi-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

44 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TypeScript Node.js npm MIT

A modern CLI for the Gandi v5 REST API β€” manage your domains and LiveDNS records from the terminal.

Website Β· Documentation


Features

  • Domain management β€” list registered domains with expiry dates and statuses, renew them for one or more years, and toggle auto-renew.
  • Full DNS control β€” list, create, update, and delete LiveDNS records with custom TTLs and every standard record type.
  • Web redirects β€” manage Gandi web forwarding with 301/302 rules straight from the terminal.
  • Permission doctor β€” gandi doctor reports your token's name, expiry, and scopes, and shows which commands each scope unlocks.
  • PAT authentication β€” fine-grained, least-privilege Gandi Personal Access Tokens, with graceful guidance when a token is missing or rejected.
  • Script & AI friendly β€” add --json to any command for structured output, non-zero exit codes on failure, and --yes to skip confirmations.

Install

npm install -g @kud/gandi-cli

Usage

# Domains
gandi domain list
gandi domain info example.com
gandi domain renew example.com --duration 2

# DNS
gandi dns list example.com
gandi dns set example.com A www 1.2.3.4 --ttl 300
gandi dns add example.com A www 5.6.7.8
# Redirects
gandi redirect add example.com www https://example.org

# Doctor & scripting
gandi doctor
gandi dns list example.com --json | jq '.[].name'

Development

git clone https://github.com/kud/gandi-cli.git
cd gandi-cli
npm install
npm run dev -- doctor

πŸ“š Full documentation β†’ gandi-cli/docs

About

🌐 Manage Gandi domains & LiveDNS from your terminal β€” list, renew and edit records via the v5 API

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors