Skip to main content
Version: 16.4

Deployment Command

watchmen-cli provide two kind of command of deploy:

deploy_asset​

        def deploy_asset():

The command "deploy_asset" have no arguments. You can use the dotenv file to set the configuration of command.

.env file

META_CLI_HOST = http://localhost:8000
META_CLI_USERNAME = watchmen-user
META_CLI_PASSWORD = change-me
META_CLI_PAT = None # no need when the username and passowrd are setted
META_CLI_DEPLOY_FOLDER = /app/config
META_CLI_DEPLOY_PATTERN = REPLACE

run command

docker run --rm --env-file /usr/watchmen/watchmen-cli/env.list ghcr.io/indexical-metrics-measure-advisory/watchmen-cli:16.3.0

deploy​

    def deploy(
host: Optional[str],
path: Optional[str],
pattern: Optional[MixedImportType] = 'replace',
username: Optional[str] = None,
password: Optional[str] = None,
pat: Optional[str] = None
)
ParameterTypeDescription
hoststrThe host fo the watchmen application.
pathstrThe path of deploy config file.
patternMixedImportTypeImport type, usually use "replace"
usernamestrThe username of the watchmen application. if pat exist, no need.
passwordstrThe password of the watchmen application. if pat exist, no need.
patstrThe person access token of the watchmen application. if username and password exist, no need.

run command

python ./src/cli.py deploy --path='/app/config' --host='http://localhost:8000' --username='watchmen-user' --password='change-me'

Deploy Config File

The config file of deploy command is a markdown file, which exported from the watchmen application.