Porkbun DNS API client
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ge e2532bd133 fix options parser 3 weeks ago
COPYING init 7 months ago
README.md init 7 months ago
piglet fix options parser 3 weeks ago



piglet is a Porkbun DNS API CLI client.

Currently piglet can:

  • Create a DNS record
  • Edit record
  • Delete DNS record
  • Retrieve DNS records


Just copy piglet to your PATH. For example:

cp piglet /usr/local/bin/

Install jq to enable pretty output.

Getting started

For first step setup the configuration file:

piglet config

piglet creates ~/.config/piglet.conf file with API credentials.

Retrieve DNS records:

piglet -d example.org retrieve

Create A-record on subdomain mail:

piglet -d example.org create name=mail type=a content= ttl=3600

Edit A-record for example.org (change to

piglet -d example.org edit id=220755500 type=a content=

Delete DNS record by id:

piglet -d example.org delete id=220755592

See piglet --help for more info.