#env-var #env #environment #control #update #settings #input

app envctl

Take full control over your .env environment variables

2 stable releases

1.1.0 Apr 23, 2023
1.0.0 Apr 17, 2023

#2313 in Command line utilities

25 downloads per month

Apache-2.0

18KB
470 lines

envctl

🚀 Take full control over your .env environment variables

usage

$ envctl --help
Environment Variable Control

Usage: envctl <COMMAND>

Commands:
  update  Read settings from INPUT and update OUTPUT
  help    Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version
$ ls
.env.example
$ cat .env.example
A=1
B=2
C=
$ envctl update
A (1): 
B (2): 3
C: 4
$ cat .env
A=1
B=3
C=4

See envctl update --help for higher granularity.

installation

$ cargo install envctl

or for development,

$ gh repo fork yu-ichiro/envctl --clone --remote
$ cd envctl
$ cargo install --path .

Make sure $HOME/.cargo/bin is included in your path.

Dependencies

~4–12MB
~109K SLoC