YAML examples for ClickHouse CLI
Minimal ClickHouse commands
yaml- action: "Run ClickHouse queries" type: "CLICKHOUSE_CLI" commands: "clickhouse-client -q 'SHOW DATABASES'" targets: - target: my_database type: CLICKHOUSE name: My ClickHouse Database host: clickhouse.example.com auth: username: deploy_user password: secured
Execute ClickHouse commands
yaml- action: "Run ClickHouse queries" type: "CLICKHOUSE_CLI" trigger_time: "ON_EVERY_EXECUTION" version: "24" shell: "BASH" commands: |- clickhouse-client -q 'SHOW DATABASES' clickhouse-client --queries-file migrate.sql setup_commands: "apt-get install -y curl" targets: - target: my_database type: CLICKHOUSE name: My ClickHouse Database host: clickhouse.example.com port: "9000" database: myapp secure: true auth: username: deploy_user password: secured