| Crates.io | nvy |
| lib.rs | nvy |
| version | 1.1.7 |
| created_at | 2025-01-31 14:38:02.817024+00 |
| updated_at | 2025-02-07 00:43:06.392079+00 |
| description | A simple command line tool for managing multiple env files (profiles) in a project. |
| homepage | https://github.com/jcserv/nvy |
| repository | https://github.com/jcserv/nvy |
| max_upload_size | |
| id | 1537571 |
| size | 108,710 |
nvy (pronounced "ehn-vee", like the word "envy") is a simple command line tool for managing multiple env files (profiles) in a project.
use command outputs the command text which can be eval'd to set the environment variables, when in shell mode.brew tap jcserv/nvy
brew install nvy
cargo binstall nvy (cargo-binstall)
or
cargo install nvy
nvy init - to create a new nvy.yaml file in the current working directoryeval "$(nvy use <profile>)" - to switch between profilesalias nv='eval "$(nvy use $1)"'nvy target <target-file> to set the target file to write tonvy use <profile> to switch between profilesnote: you can also use nvy use <profile1> <profile2> ... to use multiple profiles
have you ever had multiple configurations with different environment variables that you had to switch between?
rather than tweaking the file by hand, or commenting out code, you can now:
nvy to easily switch betweenalso, this was an opportunity for me to learn Rust by doing.