用于管理多个配置和环境的实用程序

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.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
对来自asyn线程的信号使用静态布尔与原子布尔的java差异   雅加达ee为什么当我往树上推三个物体时,树上只能放一个物体?   Eclipse中项目设置中的java错误   java GWT在发送前在JSON中序列化POST参数   java将构造函数类与am主类相结合   单击字段顶部时,java JTextField插入符号在开始位置的定位   在企业Java/中。Net项目,每个开发人员的类路径中是否都有所有依赖项?   java Firebase向dabase添加数据   java com。微软sqlserver。jdbc。SQLServerException:索引8超出范围   java Why flyway的数据库驱动程序依赖项没有在maven的pom插件中声明。xml?   arraylist如何在java中根据用户输入对内存中匹配的行进行排序?   在Java中,如何将元素(元素、优先级)放在PriorityQueue中?   在Java中从一堆代码中提取方程