用于管理多个配置和环境的实用程序
nv的Python项目详细描述
帮助用户管理多个环境的工具。
在环境中启动shell时,它将设置 环境变量自动。
它还可以与python虚拟环境集成, AWS配置文件(例如承担角色)。
创建环境后,编辑environment.json 配置其他环境变量。
用法
$ nv Usage: nv [OPTIONS] COMMAND [ARGS]... Options: -n, --environment-name _VALID_ENVIRONMENT_NAME -d, --project-dir DIRECTORY Path to the project project (defaults to current directory) -P -K --help Show this message and exit. Commands: create Create a new environment in... rm Remove an environment. run Runs a command in the specified environment. shell Launch a new shell in the specified...
$ nv create --help Usage: nv create [OPTIONS] Create a new environment in %PROJECT%/.nv-%ENVIRONMENT_NAME% Options: -p, --project-name TEXT Your project name (defaults to current directory name) -py, --python-virtualenv Activate a python virtualenv --aws-profile TEXT Obtain credentials for the given profile. --env <TEXT TEXT>... Name & Value of environment variables to set --help Show this message and exit.
$ nv shell --help Usage: nv shell [OPTIONS] Launch a new shell in the specified environment. Options: --help Show this message and exit.
$ nv run --help Usage: nv run [OPTIONS] COMMAND [ARGS]... Runs a command in the specified environment. Options: --help Show this message and exit.