Skip to content

EASwitchMultiple Expo accounts, one machine

Keep typing eas. Save each Expo account once, link each project, and every eas command uses the right account, without logging in and out.

Quick start ​

Set up once:

bash
npm install -g easwitch       # install (EAS CLI is included)

easw add personal             # save each account once: log in, or paste an access token
easw add work
easw hook                     # plain `eas` now follows project links (then open a new terminal)

cd ~/code/acme-app
easw link work                # this project belongs to "work"

Then keep using eas as usual:

bash
eas whoami                    # in acme-app: the "work" user
eas build --platform ios      # built as "work"
cd ~ && eas whoami            # everywhere else: your normal login

Prefer not to change eas? Skip easw hook and type easw instead (easw whoami, easw build…). To add the hook to your shell config yourself, use easw shell-init.

EASwitch demo: linking a project, turning on the shell hook, then using plain eas as the linked account

Working at a company? An Acme example ​

Jane uses her personal Expo login for her own apps, a separate work user for Acme's app, and a client's token for freelance work. She saves each account once, links each project, and from then on every easw command in a project uses the right account. Her normal Expo login stays available elsewhere.

Follow the Acme walkthrough for the commands, the shell hook, common situations, and the difference between an Expo user and an Expo organization.

Released under the MIT License. Not affiliated with Expo.