From 0b275bfdaa2c9d5d88fe91b27b404eae9342ea76 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Thu, 4 Jun 2026 08:44:35 +0000 Subject: [PATCH] docs: document clickhousectl Cloud Postgres support --- products/cloud/features/cli.mdx | 34 ++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/products/cloud/features/cli.mdx b/products/cloud/features/cli.mdx index 36db445a..88c788af 100644 --- a/products/cloud/features/cli.mdx +++ b/products/cloud/features/cli.mdx @@ -7,7 +7,7 @@ keywords: ['clickhousectl', 'CLI', 'cloud management', 'local development'] doc_type: 'reference' --- -The ClickHouse CLI (`clickhousectl`) is a unified command-line tool for managing ClickHouse Cloud resources and local development with ClickHouse. +The ClickHouse CLI (`clickhousectl`) is a unified command-line tool for managing ClickHouse Cloud resources and local development with ClickHouse. It also manages [ClickHouse Cloud Postgres](/cloud/managed-postgres) services. ## Installation {#installation} @@ -64,6 +64,38 @@ clickhousectl cloud service stop clickhousectl cloud service delete ``` +### Postgres services (beta) {#postgres-services} + +Create and manage [ClickHouse Cloud Postgres](/cloud/managed-postgres) services. + +```bash +# List Postgres services +clickhousectl cloud postgres list + +# Create a Postgres service +clickhousectl cloud postgres create \ + --name my-pg \ + --region us-east-1 \ + --size c6gd.xlarge \ + --pg-version 18 + +# Get service details +clickhousectl cloud postgres get + +# Update a service +clickhousectl cloud postgres update --size c6gd.2xlarge --add-tag env=prod + +# Reset the password +clickhousectl cloud postgres reset-password --generate + +# Read replicas and point-in-time restore +clickhousectl cloud postgres read-replica create --name replica-1 +clickhousectl cloud postgres restore --name restored --restore-target 2026-04-16T12:00:00Z + +# Delete a service +clickhousectl cloud postgres delete +``` + ### Organizations {#organizations} ```bash