From 3677daf46eb8e929e286785c43ae13ade542f422 Mon Sep 17 00:00:00 2001 From: Gabe Debes Date: Tue, 13 Oct 2026 15:54:42 -0700 Subject: [PATCH 1/5] [eas-cli] default simulator previews to authenticated links Co-authored-by: Codex --- packages/eas-cli/README.md | 57 +++-- .../src/build/utils/__tests__/url.test.ts | 15 +- packages/eas-cli/src/build/utils/url.ts | 8 + .../commands/simulator/__tests__/get.test.ts | 68 +++++- .../simulator/__tests__/index.test.ts | 70 +++++- .../eas-cli/src/commands/simulator/get.ts | 21 +- .../eas-cli/src/commands/simulator/index.ts | 22 +- .../src/simulator/__tests__/utils.test.ts | 205 ++++++++++++++---- packages/eas-cli/src/simulator/utils.ts | 109 ++++++++-- 9 files changed, 483 insertions(+), 92 deletions(-) diff --git a/packages/eas-cli/README.md b/packages/eas-cli/README.md index b739d8b3da..cf0a8c5162 100644 --- a/packages/eas-cli/README.md +++ b/packages/eas-cli/README.md @@ -2836,19 +2836,22 @@ ALIASES ## `eas sim:get` -[EXPERIMENTAL] get info about a remote simulator session on EAS by its simulator session ID +[EXPERIMENTAL] get info about a remote simulator session on EAS by its simulator session ID. The default browser preview link requires sign-in. ``` USAGE - $ eas sim:get [--id ] [--json] [--non-interactive] + $ eas sim:get [--id ] [--public-link] [--json] [--non-interactive] FLAGS --id= Simulator session ID. Defaults to .env.eas-simulator. --json Enable JSON output, non-JSON messages will be printed to stderr. Implies --non-interactive. --non-interactive Run the command in non-interactive mode. + --public-link Print a shareable preview link containing an access token. Anyone with the link can control the + simulator. With --json, previewApiUrl also includes the token for API clients when available. DESCRIPTION - [EXPERIMENTAL] get info about a remote simulator session on EAS by its simulator session ID + [EXPERIMENTAL] get info about a remote simulator session on EAS by its simulator session ID. The default browser + preview link requires sign-in. ALIASES $ eas sim:get @@ -2889,7 +2892,7 @@ ALIASES ## `eas sim:start` -[EXPERIMENTAL] start a remote simulator session on EAS and get instructions to connect to it +[EXPERIMENTAL] start a remote simulator session on EAS and get instructions to connect to it. The default browser preview link requires sign-in. ``` USAGE @@ -2897,8 +2900,8 @@ USAGE --build-fingerprint | --application-archive-url | --expo-go] [--sdk-version ] [--launch-arg ...] [--open-url ] [--type agent-device|appium|argent|web-preview-only] [--package-version ] [--network-capture-field ... --network-capture] [--max-duration-minutes ] [--max-idle-time-minutes - ] [--egress-allow ... --egress local] [--force] [--out-config-type env|dotenv] [--json] - [--non-interactive] + ] [--egress-allow ... --egress local] [--force] [--out-config-type env|dotenv] [--public-link] + [--json] [--non-interactive] FLAGS -p, --platform=