eas init --json outputs linked project details
Introduced 2026-07-27 · score 0.96
HOW TO USE IT
When initializing or linking an EAS project and a script needs its details, run `eas init --account <account> --json --non-interactive`; it prints the result as JSON to stdout.
eas init --account <account> --json --non-interactiveWHY THIS HELPS
Capture the linked EAS project details from project initialization in a script.
REQUIREMENTS AND LIMITATIONS
- Version: v21.3.0
- --account <value>: Name of the account that will own the project; mutually exclusive with `--id`.
- --id <value>: ID of the EAS project to link; mutually exclusive with `--account`.
- --json: Enable JSON output; non-JSON messages go to stderr. Implies `--non-interactive`.
- --non-interactive: Run without interactive prompts.
- --force: Create or link without additional prompts, or overwrite an existing project ID when used with `--id`.
- Prerequisite: EAS CLI must have an authenticated Expo account context; the command's context requires logged-in status.
- Prerequisite: Install EAS CLI with `npm install -g eas-cli` or `yarn global add eas-cli`.
- The JSON output is described for a linked project.
FIRST-PARTY EVIDENCE
- https://github.com/expo/eas-cli/releases/tag/v21.3.0
- https://github.com/expo/eas-cli/blob/v21.3.0/packages/eas-cli/src/commands/project/init.ts
- https://github.com/expo/eas-cli/blob/v21.3.0/packages/eas-cli/README.md
Check the installed version and the source before using it. Entry JSON