CLI tool to manage cloudflare DNS records
demo.cast | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main_test.go | ||
main.go | ||
README.md |
CLI tool to manage cloudflare DNS records
Installation
❯ go install go.balki.me/cloudflare-dns-cli@latest
Features
- Add/Modify
A
,AAAA
,CNAME
records - List/Delete records
- Save all records in JSON format
Usage
Usage of cloudflare-dns-cli:
-a string
Cloudflare API Token. env var: CF_TOKEN
-c string
CNAME target
-d string
Domain name, e.g. example.com. env var: DOMAIN
-i value
IP address (default 127.0.0.1)
-o string
Path to save all records as json, e.g. ./records.json
-s string
Subdomain, e.g. blog. Use @ for root (default "<UNSET>")
-x Delete records of subdomain
Demo
===> HERE <===
Similar
- https://github.com/earlchew/cloudflare-cli
- https://github.com/tech-otaku/cloudflare-dns
- (official) https://github.com/cloudflare/python-cloudflare#cli