Porkbun API bash client
The client under development, more features will be added with the time.
Porkbun v3 API client in bash. The script needs the following packages to be installed in the system:
- curl: to perform the HTTPS requests.
- jq: to parse and beautify the JSON responses.
Supported API endpoints
The following API endpoints are the ones that will be supported, the currently implemented ones are marked with a check:
- General
- Domain
- DNS
Usage
-
Create API keys for your account, on Account > API Access
-
Enable "API Access" on the domains, press on "Details" and check the "API Access" settings on the desires domains.
-
Execute the script, it will prompt for your API credentials the first time you launch it. The configuration file is saved on the same location as is the script.
The generated file is in plain text, with 600 (rw-------) permission.
-
Run again the script, a help page will be shown when encountering invalid parameters. Such as
Usage: ./porkbun-linux-cli <command> Commands: ping Test communication with the API, also returns the IP address. ping-ipv4 Test communication with the API, also returns the IP address in IPv4 format. dns Manage DNS records Version: v0.1.0