REnv is a tool for running commands with a set of environment variables. It can be used to quickly switch the value of environment variables which is particularly useful for some devops tools.
Environment variable values are stored in .env files at a well known location:
cargo install renv
REnv supports windows, linux and unix.
REnv supports the following commands:
Start $EDITOR to modify the contents of the named .env file
Run a command with the environment variables loaded from the named .env file Add a "--" before any arguments that might contain hyphens and confuse renv's argument parsing.
Copy a given .env file to the location calculated from the given environment name
List installed environment .env files by environment name
Create a blank installed environment .env file and stsart $EDITOR to edit the contents
Delete the installed environment .env file
Print the contents of the named environment .env file to the console
```
cat > prod.env <
renv install prod prod.env
renv exec prod -- aws s3 ls ```