Shopify CLI · Terminal
Switch between Shopify CLI accounts without logging out.
A CLI that swaps the active Shopify CLI session, so moving between client accounts costs one command instead of a logout and a fresh login.
npm install -g shopify-account-switcherFree · MIT · Node 18+ · macOS, Linux, Windows
zsh
$ shopify-acc list
1. berk@studio.dev
2. berk@client-store.com current
3. hello@berkbulgan.com
$ shopify-acc switch 3
Switched to hello@berkbulgan.com
What it does
shopify-acc list
Every account you have authenticated, numbered, with the active one marked.
shopify-acc switch
Switch by list number or by email alias — shopify-acc switch 2, or shopify-acc switch you@studio.com.
shopify-acc current
The active session at a glance: session id, the stores it reaches, and when it expires.
shopify-acc add
Authenticates a new account through shopify auth login and adds it to the list.
shopify-acc remove
Drops an account you are done with, by alias.
Before you install
- Requirements
- Node.js 18 or later · Windows, macOS, Linux
- Version
- 1.0.0
- Prerequisite
- Shopify CLI must be installed first: npm install -g @shopify/cli
- Trust
- It switches one config field — currentSessionId. It never reads your tokens, never stores credentials, and never modifies a session.