Skip to content

Environment and files ​

Environment variables ​

VariableEffect
EASWITCH_CONFIG_DIRUse this folder for EASwitch's config instead of the default. Its tokens are kept in a separate part of the credential store, so it's safe for testing without touching your real accounts.
EXPO_TOKENIf it's already set in your shell, EASwitch overrides it for the commands it runs, and prints a warning.
NO_COLORTurn off colored output.
EASWITCH_HOOKSet to 1 by the shell hook in terminals that have loaded it. easw current uses it to tell whether plain eas follows links. You don't set it yourself.

Files ​

WhatWhereContains
Access tokensOS credential store (macOS Keychain, Windows Credential Manager, Linux Secret Service), under the service name easwitch (or easwitch:<id> when EASWITCH_CONFIG_DIR is set)One token per account
Account listconfig.json in your OS config folder: ~/Library/Preferences/easwitch/ on macOS, %APPDATA%\easwitch\Config\ on Windows, ~/.config/easwitch/ on LinuxAccount names, Expo usernames, dates, the current account. No tokens.
Project link.easwitch.json in the project rootThe linked account's name. No tokens.
Shell hookYour shell's startup file (see supported shells); for Command Prompt, cmd-hook.cmd in EASwitch's config folder plus an AutoRun entryOne marked line calling easw shell-init

Exit codes ​

CodeWhen
The command's own codeAny command run through easw (easw build, easw exec …, plain eas with the hook) returns exactly what that command returned.
0An easw command succeeded.
1An easw error (for example, no account selected, or an unknown account), or easw list --check found an invalid token.
130You pressed Ctrl+C at a prompt.

Released under the MIT License. Not affiliated with Expo.