Skip to main content
The ClickHouse CLI (clickhousectl) is a unified command-line tool for managing ClickHouse Cloud resources and local development with ClickHouse.

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

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 quick install page for getting started with local development.

Requirements