Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why
Implements the following commands:
eas env:create
ENG-11913eas env:get
ENG-11915eas env:delete
ENG-11914eas env:list
ENG-11917eas env:update
ENG-11918 (Currently only delegates toenv:create
)Also, as discussed on Linear, implements
eas env:shared:create/update/get/delete/link/unlink
as--scope shared
flag on mentioned commands. (ENG-11927, ENG-11926, ENG-11925, ENG-11921, ENG-11922, ENG-11923).How
Created commands and mutations using updated backend (https://github.com/expo/universe/pull/15153).
Deployment
eas env
commands #2350Test Plan
Each command accepts arguments both in interactive mode (user is prompted for input) and non-interactive (arguments are passed inline).
The following flow will create both project and shared variables, then it will link and unlink shared variable from the project, and finally delete both of them. Commands are executed both with inline arguments and prompts.
From an existing app directory:
eas env:create
and provide name, value and select environmentenv:create --scope SHARED --name sharedVariable --value someValue
eas env:list
and select environment - displays only project vareas env:list --format long --scope SHARED
- displays only shared var in long formateas env:link
- select shared var and environmenteas env:list
- shared variable should be added to selected enveas env:unlink --environment SELECTEDENV --name sharedVariable
eas env:list
- shared variable should be removedeas env:delete
- delete project variableeas env:delete --scope SHARED
- delete shared environment