ClickhouseAnnouncement
What's new in clickhousectl v0.5.0
Summary
clickhousectl v0.5.0 introduces a complete user-defined function workflow that lets developers scaffold, test locally, and deploy to Cloud with a single command. The release adds observability for ClickHouse Managed Postgres, including metrics, server logs, slow-query patterns, and read-only SQL over HTTP. The command surface is standardised with uniform selectors, –file inputs, global org selection, and JSON errors everywhere, though some changes are breaking. New features include saved queries with Query API endpoints, BigQuery CDC ClickPipes, ClickStack support, and permission listings in help. The CLI also gains far wider Cloud coverage for service settings, scaling schedules, upgrade windows, snapshots, and BYOC infrastructure.
Context
clickhousectl (chctl) is a CLI for ClickHouse and Postgres, both locally and in ClickHouse Cloud. v0.4.0 left beta and added horizontal autoscaling and ClickPipe schema discovery. v0.5.0 introduces UDFs end-to-end, ClickHouse Managed Postgres observability, a more consistent CLI, saved queries and Query API endpoints, BigQuery CDC ClickPipes, ClickStack support, and permission listings in help.
Approach / What changed
The release standardises the command surface with uniform selectors, –file inputs, global org selection, and JSON errors everywhere. It adds a complete UDF workflow (scaffold, test locally, ship to Cloud), ClickHouse Managed Postgres observability (metrics, logs, slow queries, read-only SQL over HTTP, IP allow rules), saved queries with Query API endpoints, BigQuery CDC ClickPipes, ClickStack support, and permission listings in help. Some changes are breaking, with old forms failing with a usage error.
Takeaways
Executable UDFs now have a complete workflow: scaffold with ‘local udf init’, test locally with ‘local udf deploy’, then ship to Cloud with ‘cloud udf deploy’ in one step.
ClickHouse Managed Postgres observability includes metrics, server logs, slow-query patterns sorted by p95 duration, and read-only SQL over HTTP using OAuth login without psql.
The CLI standardises inputs: existing resources are given by positional ID or exact name with –name, org is selected with –org-id/–org-name, and JSON errors are printed in –json mode or when an agent is detected.
FAQ
How does the CLI show required permissions?
The CLI now lists the API-key permissions each Cloud command needs in its help output. This lets you check before running a command whether your key is sufficient, instead of discovering it from a failed call.
Are there breaking changes in v0.5.0?
Yes, the release includes several breaking changes. For example, the --name flag now selects the target resource on updates, org commands use --org-id/--org-name instead of a positional ID, and --wait/--wait-timeout were removed from postgres promote/switchover. Old forms fail with a usage error (exit 2).
How do I query Postgres from the CLI?
You can run read-only SQL over HTTP using your OAuth login with the command 'cloud postgres query <postgres-id> --query "SELECT version()"'. This requires no psql, network path, or password.
Source and freshness
- Source
- clickhouse.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.