Skip to content

Porkbun Linux API client in bash, this is a mirror repository. Check up the website for the original most up-to-date version

License

Notifications You must be signed in to change notification settings

alexbcberio/porkbun-linux-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

Usage

  1. Create API keys for your account, on Account > API Access

  2. Enable "API Access" on the domains, press on "Details" and check the "API Access" settings on the desires domains.

  3. 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.

  4. 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
    

About

Porkbun Linux API client in bash, this is a mirror repository. Check up the website for the original most up-to-date version

Resources

License

Stars

Watchers

Forks

Languages