From 4c5d06fc26e8087caab3ff674c8a9860f188853b Mon Sep 17 00:00:00 2001 From: William Grosset Date: Sun, 2 Aug 2026 16:03:57 -0700 Subject: [PATCH] [eas-cli] Add --link-project-id flag to eas build --- CHANGELOG.md | 2 + packages/eas-cli/README.md | 12 +- .../commands/build/__tests__/index.test.ts | 148 +++++++++++ packages/eas-cli/src/commands/build/index.ts | 27 ++ .../__tests__/projectInitialization-test.ts | 248 ++++++++++++++++++ .../src/project/projectInitialization.ts | 38 ++- 6 files changed, 469 insertions(+), 6 deletions(-) create mode 100644 packages/eas-cli/src/commands/build/__tests__/index.test.ts create mode 100644 packages/eas-cli/src/project/__tests__/projectInitialization-test.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index f58976a3d0..237516fffb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ This is the log of notable changes to EAS CLI and related packages. ### 🎉 New features +- [eas-cli] Add `--link-project-id` flag to `eas build` to link the directory to an existing project before building, like `eas init --id`. ([#4138](https://github.com/expo/eas-cli/pull/4138) by [@williamgrosset](https://github.com/williamgrosset)) + ### 🐛 Bug fixes - [build-tools] Revert "Pin the default `agent-device` version for remote sessions" now that `agent-device` 0.20.5 fixes the broken release. ([#4144](https://github.com/expo/eas-cli/pull/4144) by [@gwdp](https://github.com/gwdp)) diff --git a/packages/eas-cli/README.md b/packages/eas-cli/README.md index 1e8289260e..6125842dab 100644 --- a/packages/eas-cli/README.md +++ b/packages/eas-cli/README.md @@ -535,10 +535,10 @@ start a build ``` USAGE - $ eas build [-p android|ios|all] [-e PROFILE_NAME] [--local] [--output ] [--wait] [--clear-cache] - [-s | --auto-submit-with-profile PROFILE_NAME] [--what-to-test ] [-m ] [--build-logger-level - trace|debug|info|warn|error|fatal] [--freeze-credentials] [--refresh-ad-hoc-provisioning-profile] [--verbose-logs] - [--json] [--non-interactive] + $ eas build [-p android|ios|all] [-e PROFILE_NAME] [--force --link-project-id PROJECT_ID] [--local] + [--output ] [--wait] [--clear-cache] [-s | --auto-submit-with-profile PROFILE_NAME] [--what-to-test ] + [-m ] [--build-logger-level trace|debug|info|warn|error|fatal] [--freeze-credentials] + [--refresh-ad-hoc-provisioning-profile] [--verbose-logs] [--json] [--non-interactive] FLAGS -e, --profile=PROFILE_NAME Name of the build profile from eas.json. Defaults to "production" if @@ -551,9 +551,13 @@ FLAGS --build-logger-level=