diff --git a/CHANGELOG.md b/CHANGELOG.md index 05e9705f0b..2a23577c28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ This is the log of notable changes to EAS CLI and related packages. ### 🎉 New features +- [eas-cli] Add `eas env:set`, which creates or updates an environment variable in one command. `eas env:create` and `eas env:update` are now deprecated. ([#4002](https://github.com/expo/eas-cli/pull/4002) by [@jonsamp](https://github.com/jonsamp)) - [eas-cli] Improve `eas workflow:create`: add a `--template` flag, generate a placeholder workflow when a file name is passed, use shorter default file names (`build.yml`, `update.yml`, `deploy.yml`), configure EAS Build and EAS Update automatically when the chosen template requires them, set default app identifiers without prompting for the development build and deploy templates, install `expo-dev-client` during development build setup, and tighten the generated comments and next steps. ([#3943](https://github.com/expo/eas-cli/pull/3943) by [@jonsamp](https://github.com/jonsamp)) - [eas-cli] `eas integrations:posthog:dashboard` now opens PostHog via a signed-in link, skipping the login prompt. ([#3975](https://github.com/expo/eas-cli/pull/3975) by [@gwdp](https://github.com/gwdp)) diff --git a/packages/eas-cli/README.md b/packages/eas-cli/README.md index c8cb078357..e79a6904ec 100644 --- a/packages/eas-cli/README.md +++ b/packages/eas-cli/README.md @@ -112,6 +112,7 @@ eas --help COMMAND * [`eas env:list [ENVIRONMENT]`](#eas-envlist-environment) * [`eas env:pull [ENVIRONMENT]`](#eas-envpull-environment) * [`eas env:push [ENVIRONMENT]`](#eas-envpush-environment) +* [`eas env:set [ENVIRONMENT]`](#eas-envset-environment) * [`eas env:update [ENVIRONMENT]`](#eas-envupdate-environment) * [`eas fingerprint:compare [HASH1] [HASH2]`](#eas-fingerprintcompare-hash1-hash2) * [`eas fingerprint:generate`](#eas-fingerprintgenerate) @@ -1316,7 +1317,7 @@ _See code: [packages/eas-cli/src/commands/diagnostics.ts](https://github.com/exp ## `eas env:create [ENVIRONMENT]` -create an environment variable for the current project or account +create an environment variable for the current project or account (deprecated, use eas env:set) ``` USAGE @@ -1341,7 +1342,7 @@ FLAGS DESCRIPTION - create an environment variable for the current project or account + create an environment variable for the current project or account (deprecated, use eas env:set) ``` _See code: [packages/eas-cli/src/commands/env/create.ts](https://github.com/expo/eas-cli/blob/v20.5.1/packages/eas-cli/src/commands/env/create.ts)_ @@ -1495,9 +1496,41 @@ DESCRIPTION _See code: [packages/eas-cli/src/commands/env/push.ts](https://github.com/expo/eas-cli/blob/v20.5.1/packages/eas-cli/src/commands/env/push.ts)_ +## `eas env:set [ENVIRONMENT]` + +set (create or update) an environment variable on the current project or account + +``` +USAGE + $ eas env:set [ENVIRONMENT] [--name ] [--value ] [--type string|file] [--visibility + plaintext|sensitive|secret] [--scope project|account] [--environment ...] [--json] [--non-interactive] + +ARGUMENTS + [ENVIRONMENT] Environment to set the variable in. Default environments are 'production', 'preview', and + 'development'. + +FLAGS + --environment=... Environment variable's environment, e.g. 'production', 'preview', 'development' + --json Enable JSON output, non-JSON messages will be printed to stderr. Implies --non-interactive. + --name= Name of the variable + --non-interactive Run the command in non-interactive mode. + --scope=