cflare

Crates.iocflare
lib.rscflare
version0.2.0
sourcesrc
created_at2020-04-08 19:52:15.887709
updated_at2020-04-12 00:31:31.367343
descriptionCloudflare command-line tool
homepagehttps://github.com/cyakimov/cloudflare-cli
repositoryhttps://github.com/cyakimov/cloudflare-cli
max_upload_size
id227730
size96,657
Carlos Yakimov (cyakimov)

documentation

README

cloudflare-cli (cflare)

Build

cflare is a command-line tool that lets you manage some aspects of your Cloudflare account.

🚀 Installation

Install with Homebrew

brew install cyakimov/tools/cflare

Install with cargo

cargo install cflare

🏃‍♂️ Quickstart

  1. Create a Cloudflare API token
  2. Run cflare config & paste the API token

You're all set now.

📚 Usage

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.

Future plan

  • Improve error formatting.
  • Context switching a la kubectl. Useful when you manage multiple Cloudflare accounts.
  • Add support for cache command to purge the cache.
  • Add support for pagerules command to manage Page rules.
  • Add support for certificates command to manage Origin certificates.
Commit count: 34

cargo fmt