1 个不稳定版本
| 0.0.1 | 2023年9月29日 | 
|---|
#54 in #dotenv
7KB
118 代码行(不包括注释)
env-manager
通过命令行管理dotenv文件
用法
Usage: dotenv [OPTIONS] <COMMAND>
Commands:
  list        Print all .env variables
  list-files  List all env files
  set         Set environment
  get         Get environment
  help        Print this message or the help of the given subcommand(s)
Options:
  -s, --stage <STAGE>  Set stage
  -h, --help           Print help
  -V, --version        Print version
示例
http POST https://my-service-auth.com/auth/sign-in username=root password=toor \
    | jq -r .accessToken \
    | xargs dotenv set ACCESS_TOKEN
将响应accessToken设置到
.env文件中
依赖
~6–13MB
~142K SLoC