alexbcberio / porkbun-linux-cli

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

Home Page:https://git.alexbcberio.com/alexbcberio/porkbun-linux-cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://git.alexbcberio.com/alexbcberio/porkbun-linux-cli

License:MIT License


Languages

Language:Shell 100.0%