/cloudflare-load-balance-manager

📦 CLI Tool - Register and deregister instances with a Cloudflare load balancer

Primary LanguageJavaScriptMIT LicenseMIT

cloudflare-load-balance-manager Known Vulnerabilities Dependencies Dev Dependencies NPM version

cloudflare-load-balance-manager is an easy to use CLI tool that lets you easily register and deregister instances with a Cloudflare load balancer. This is useful during deployments to stop traffic to your instance then resuming traffic after your deployment is complete.

Install

npm install -g cloudflare-load-balance-manager

Usage

cloudflare-load-balance-manager <command> <options>

Commands:

  • register (Register instance to Cloudflare)
  • deregister (Deregister instance to Cloudflare)

Example command:

cloudflare-load-balance-manager register --email test@test.com --api-key abcdefghijlmnopqrstuvwxyzabcde --name lb1
cloudflare-load-balance-manager deregister --email test@test.com --api-key abcdefghijlmnopqrstuvwxyzabcde --name lb2

Help command:

cloudflare-load-balance-manager --help
cloudflare-load-balance-manager -h