Getting Started
cl is a CLI tool to easily switch between multiple Cloudflare/Wrangler accounts.
How 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.
Quick Start
# Install (choose one)
brew install groo-dev/tap/cl # Homebrew
npm install -g @groo.dev/cl-wrangler # npm
pip install cl-wrangler # pip
# Save your current account
cl add
# Switch between accounts
cl switch
Workflow Example
# Start with your personal account logged in
wrangler login
cl add # Saves as "PersonalAccount"
# Add work account
wrangler login # Login to work account
cl add # Saves as "WorkAccount"
# Now switch between them
cl switch personal # Switch to personal
cl switch work # Switch to work
# Or use the interactive menu
cl switch