Crates.io | cflare |
lib.rs | cflare |
version | 0.2.0 |
source | src |
created_at | 2020-04-08 19:52:15.887709 |
updated_at | 2020-04-12 00:31:31.367343 |
description | Cloudflare command-line tool |
homepage | https://github.com/cyakimov/cloudflare-cli |
repository | https://github.com/cyakimov/cloudflare-cli |
max_upload_size | |
id | 227730 |
size | 96,657 |
cflare
is a command-line tool that lets you manage some aspects of your Cloudflare account.
brew install cyakimov/tools/cflare
cargo install cflare
cflare config
& paste the API tokenYou're all set now.
List available commands with cflare -h
Examples:
cflare accounts list
cflare zones list
cflare dns list --zone mydomain.com
cflare dns create --zone mydomain.com -c 1.1.1.1 mysubdomain --ttl 3600
cflare cache purge --zone mydomain.com -u https://mydomain.com/css/styles.css https://mydomain.com/js/main.js ...
cflare cache purge --zone mydomain.com --all
Overriding config file credentials:
Providing any of the --email
, --key
or --token
arguments overrides the config file.
kubectl
. Useful when you manage multiple Cloudflare accounts.cache
command to purge the cache.pagerules
command to manage Page rules.certificates
command to manage Origin certificates.