Skip to content

Usage

The Main Command: cl switch

cl switch is your one-stop command for managing accounts. Run it to:

  • Switch to any saved account
  • Login with a new account
  • Remove an account you no longer need
bash
cl switch
? Select account:
  > ✓ PersonalAccount ([email protected])
      WorkAccount ([email protected])
      ClientProject ([email protected])
    + Add new account
    × Remove account

Fuzzy Matching

Skip the menu by typing part of the account name:

bash
cl switch work     # Matches "WorkAccount"
cl switch personal # Matches "PersonalAccount"
cl switch client   # Matches "ClientProject"

Other Commands

CommandDescription
cl addSave current wrangler account
cl listList all saved accounts
cl currentShow current account
cl removeRemove an account
cl logoutLogout and remove current account
cl configView/edit configuration
cl versionShow version

Workflow Example

bash
# 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

Released under the MIT License.