Getting Started
cl is a CLI tool to easily switch between multiple Cloudflare/Wrangler accounts.
Why?
If you work with multiple Cloudflare accounts (personal projects, client work, different organizations), you know the pain of logging in and out of Wrangler. cl solves this by:
- Saving your Wrangler authentication configs
- Letting you switch between them instantly
- Auto-saving token updates before switching
Quick Start
bash
# Install
brew install groo-dev/tap/cl
# Save your current account
cl add
# Switch between accounts
cl switchHow It Works
- Wrangler stores authentication at
~/.wrangler/config/default.toml clsaves copies of this file for each account- When switching,
clcopies the saved config back - Before switching, any token updates are saved automatically
That's it! No complex setup, no environment variables to manage.