Skip to main content
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 services.

Installation

A chctl alias is also created automatically for convenience.

Cloud management

Authenticate with ClickHouse Cloud and manage your services directly from the command line.

Authentication

This prompts for your API key and secret, and saves them to .clickhouse/credentials.json (project-local, git-ignored). You can also use environment variables:

Services

Postgres services (beta)

Create and manage ClickHouse Cloud Postgres services.

Organizations

API keys

Members and invitations

Backups

JSON output

Use the --json flag to get JSON-formatted responses from any cloud command:

Local development

The CLI also manages local ClickHouse installations and servers. See the clickhousectl (CLI) page for getting started with local development.

Requirements

Last modified on June 23, 2026