bc1c3842ee5d6959a8276fff4e2a6954b2df2c67
				
			
			
		
	CLI tool to manage cloudflare DNS records
Installation
Using go
go install go.balki.me/cloudflare-dns-cli@latest
# Run directly without installing
go run go.balki.me/cloudflare-dns-cli@latest -h
Using docker
mkdir -p $HOME/bin
docker run --pull=always --rm -v "$HOME/bin:/op" golang sh -c "go install go.balki.me/cloudflare-dns-cli@latest && install -o $(id -u) -g $(id -g) /go/bin/cloudflare-dns-cli /op/"
# Run directly without installing
docker run --pull=always --rm golang go run go.balki.me/cloudflare-dns-cli@latest -h
Features
- Add/Modify A,AAAA,CNAME,MXrecords
- 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)
  -m    Set mx record with cname value
  -o string
        Path to save all records as json, e.g. ./records.json, '-' for stdout
  -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
Why another cli?
Description
				
								Version 0.2.1
								
	Latest
							
						
					Languages
				
				
								
								
									Go
								
								100%