Repository navigation
Releases: iamgarriTech/easwitch
Releases · iamgarriTech/easwitch
Release list
v0.9.0
Added
easw eas <args>: run EAS CLI the way the shell hook does (the linked account inside linked projects, your normal login elsewhere), as a documented command for scripts and CI. The hook now calls it; hooks installed earlier keep working.easw env: prints shell code that setsEXPO_TOKENto the account easw would use here, foreval "$(easw env)"(plus fish, PowerShell and cmd variants, and--unset). It won't print the token straight into a terminal.easw currentwarns when plaineaswon't follow the project's link: when the hook isn't set up, or it's set up but the terminal hasn't loaded it.easw current --jsonaddshookandplainEasFollowsLink.
Changed
- The shell hook sets
EASWITCH_HOOK=1in terminals that load it. On Command Prompt, runeasw hookagain to update the hook file.
v0.8.1
Fixed
- A custom
EASWITCH_CONFIG_DIRnow keeps its tokens separate from your real accounts' tokens. Before, adding or removing an account with the same name there (for example in a test or demo) also overwrote or deleted your real token for that account.
v0.8.0
Added
easw linkoffers to set up the shell hook when it isn't set up yet, so plaineascommands follow project links too. Press Enter to accept, or pass--no-hook-promptto skip the question. Without a terminal it only prints a tip.
Changed
- The README, docs website and demo GIF lead with keeping plain
eas: add your accounts, runeasw hookonce, link each project, then useeasas usual. Typingeaswinstead is shown as the alternative. - Detecting an existing hook on Windows no longer needs to start PowerShell.
v0.7.1
Added
- "Example: working at Acme" in the README and on the docs website: a full walkthrough of using work, client and personal Expo accounts, including the difference between an Expo user and an organization.
easw linksays thateaswcommands now use the linked account, and suggestseasw hookwhen plaineasisn't set up to follow links yet.- Documentation website at https://iamgarritech.github.io/easwitch/, with a getting started guide, pages on linking projects, the shell hook, how it works and scripting, a full command reference, and an FAQ.
v0.7.0
Added
easw hookturns on the shell hook with one command. It detects your shell and adds a marked line to its config file;easw unhookremoves it.easw shell-initstill prints the script for manual setup.- The shell hook supports Command Prompt (cmd) through a
doskeymacro loaded by cmd's AutoRun setting. On Windows,easw hooksets up both PowerShell and Command Prompt. easw --helpincludes quick start examples.
Changed
- The README has a quick start, a full command reference with every option, and sections on the shell hook, environment variables and exit codes.
v0.6.0
Added
easw shell-init: an opt-in shell hook (zsh, bash, fish, PowerShell) so plaineasruns as the linked account inside projects linked witheasw link, and as your normal login everywhere else.eas login/eas logoutalways use your normal session.
v0.5.1
Changed
- The README on npm now includes a demo GIF.
v0.5.0
Added
easw usewithout a name shows a picker of your accounts.easw list --checktests each stored token with Expo and flags revoked or expired ones. It exits with code 1 if any are invalid, and fills in missing usernames.
v0.4.1
Changed
- Releases are published from GitHub Actions with npm trusted publishing, so each version on npm has a provenance attestation.
v0.4.0
Added
easw addcan log in to Expo (browser, email and password, or SSO) instead of asking you to paste a token. The login runs in a temporary, separate session, so your normal Expo login isn't affected. EASwitch uses it to create an access token, then logs the temporary session out.--login [browser|password|sso]skips the menu; pasting a token still works.
Fixed
- The Expo username saved for a pasted token no longer includes "(authenticated using EXPO_TOKEN)", which newer EAS CLI versions add to
eas whoami.
Also includes 0.3.0 (--json output and a more prominent token link), which wasn't published to npm separately.
npm install -g easwitch@latest