You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just curious to learn from @JeffreyCA the scenario you ran into that pushed towards the consideration of azd env set <key> <value> <key> <value>.
I could see azd env set --file .env or something similar for programmatic purposes, but it feels that for a general terminal experience azd env set <key> <value> is more readable than the proposed shorthand.
I notably find whitespace delimiter being used for key|value and key-value|key-value is giving me a little pause.
The scenario is being able to set multiple environment key-value pairs in one command. Alternating key/value was the first approach that came to my mind initially. Now that I think about it, that may have been influenced by my experience with the Redis API, which uses a similar syntax in some commands like MSET.
It looks like many other CLIs (az cli, kubectl) adopt a different syntax like key=value key2=value2, which I think is worth exploring further and might feel better as well.
What do you think about something like:
Command
Description
azd env set <key> <value>
Set a single environment variable
azd env set <key>=<value> <key2>=<value2> ... <keyN>=<valueN>
It would be useful to be able to set multiple environment key-value pairs with a single command, something like:
Or additionally, loading environment values from an external file (related to #4935 but outside of
azd init
), like:The text was updated successfully, but these errors were encountered: