Crates.io | cliflare |
lib.rs | cliflare |
version | 0.4.3 |
source | src |
created_at | 2023-12-12 02:24:35.259322 |
updated_at | 2024-01-08 06:33:55.105409 |
description | A command line tool used to interact with Cloudflare APIs |
homepage | https://github.com/davepmiller/cliflare |
repository | https://github.com/davepmiller/cliflare |
max_upload_size | |
id | 1065772 |
size | 279,479 |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install cliflare
# add your token value to a startup script
echo CLOUDFLARE_ENDPOINT=https://api.cloudflare.com/client/v4 >> ~/.zshrc
echo CLOUDFLARE_TOKEN=abcd1234**API_TOKEN**4321dcba >> ~/.zshrc
echo CLOUDFLARE_ACCOUNT_ID=abcd1234**ACCOUNT_ID**4321dcba >> ~/.zshrc
cliflare token verify
# print out all zone info
cliflare zone list
# print only zone "name" field -- i.e. domains
cliflare zone list --domains
cliflare zone create newzone.com
cliflare zone delete newzone.com
cliflare dns list --zone_id <ZONE_ID>
cliflare dns list --zone_name <DOMAIN>
cliflare dns export --zone_id <ZONE_ID>
cliflare dns export --zone_name <DOMAIN>
cliflare dns import --file <PATH> --zone_id <ZONE_ID>
cliflare dns import -file <PATH> --zone_name <DOMAIN>
cliflare dns clear --zone_id <ZONE_ID>
cliflare dns clear --zone_name <DOMAIN>
cliflare settings list --zone_id <ZONE_ID>
cliflare settings list --zone_name <DOMAIN>
Fill out this form and I'll get back to you.