aws-amplify / aws-amplify/amplify-cli

amplify env list --json should indicate current environment

Open
#1,297 3 comments 0 reactions 0 assignees View on GitHub
feature-request multienv p4 pending-review
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

**Is your feature request related to a problem? Please describe.**
I'm writing a script that needs to know the current env name.

**Describe the solution you'd like**
The script would run `amplify env list --json` and from there easily parse the json to get current env.

**Describe alternatives you've considered**
Will have to instead rely on `amplify env list` and look for the `*` through regex. Or perhaps this info is stored in a file somewhere in amplify/backend dir?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.