Create a new deployment version.
Usage
Usage: vh deployment create-version [OPTIONS] ENDPOINT-OPTIONS...
Options
commit
:- Type: STRING
- Default:
none
- Usage:
vh deployment create-version --commit -c
The commit to use. Defaults to the current HEAD.
deployment
:- Type: STRING
- Default:
none
- Usage:
vh deployment create-version --deployment -d
The name of the deployment to use.
environment_variables
:- Type: STRING
- Default:
none
- Usage:
vh deployment create-version --var -v
Add environment variable (NAME=VALUE). May be repeated.
endpoints
:- Type: STRING
- Default:
none
- Usage:
vh deployment create-version --endpoints -e
Names of endpoints enabled in deployment version.
version_name
:- Type: STRING
- Default:
none
- Usage:
vh deployment create-version --name -n
Name of the created version (defaults to a name based on the creation date).
inherit_env_vars
:- Type: BOOL
- Default:
true
- Usage:
vh deployment create-version --inherit-env-vars
Use project environment variables in deployment.
args
:- Type: UNPROCESSED
- Default:
none
-
Usage:
vh deployment create-version args
-
adhoc
: - Type: BOOL
- Default:
false
- Usage:
vh deployment create-version --adhoc -a
Upload the current state of the working directory, then create a deployment version from it.
CLI Help
Usage: create-version [OPTIONS] ENDPOINT-OPTIONS...
Create a new deployment version.
Options:
-c, --commit SHA The commit to use. Defaults to the current
HEAD.
-d, --deployment TEXT The name of the deployment to use.
-v, --var TEXT Add environment variable (NAME=VALUE). May
be repeated.
-e, --endpoints TEXT Names of endpoints enabled in deployment
version.
-n, --name TEXT Name of the created version (defaults to a
name based on the creation date).
--inherit-env-vars / --no-inherit-env-vars
Use project environment variables in
deployment.
-a, --adhoc Upload the current state of the working
directory, then create a deployment version
from it.