Skip to main content
Version: Current 16.5-prerelease 🎯

Overview

Watchmen Command-Line Interface

We provide the command line tools to help customer to maintain their environment. The command-Line Interface base on the function provided by the watchmen applications.

Core Function

  1. deployment

Import topics, pipelines, spaces and connected spaces into the environment. You can use the function to deploy the config file which export from other environment in the new one.

  1. rerun

Re-trigger the pipeline of a topic, usually for some purpose of maintenance, like fix bugs or data patch.

How to use

Source code

Use the source code , clone from repository:

gh repo clone Indexical-Metrics-Measure-Advisory/watchmen

In the watchmen-cli directory, run cli.py. for example:

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

Docker

Use the watchmen-cli image, pull image from the command line:

docker pull ghcr.io/indexical-metrics-measure-advisory/watchmen-cli:16.3.0

execute with docker command, parameters are passed through environment variables:

docker run --rm -e command=deploy -e path=/app/config -e host=http://localhost:8000 -e username=watchmen-user -e password=change-me ghcr.io/indexical-metrics-measure-advisory/watchmen-cli:16.3.0