---
title: "Getting started with clickhousectl: the ClickHouse CLI for local and cloud"
description: "clickhousectl (alias chctl) is a single CLI that manages local ClickHouse versions, isolated named servers, project scaffolding and ClickHouse Cloud services."
url: "https://swe.quest/articles/getting-started-with-clickhousectl-the-clickhouse-cli-for-local-and-cloud-e3c5c42045cc8994"
canonical: "https://clickhouse.com/blog/getting-started-clickhousectl"
source: "ClickHouse"
published: "2026-04-16"
difficulty: "medium"
kind: "How-to"
reading_minutes: 7
tags: ["analytics","developer-tools","ci-cd","cloud","ai-agents"]
---

# Getting started with clickhousectl: the ClickHouse CLI for local and cloud

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-04-16, 7 min read, How-to. Original: [https://clickhouse.com/blog/getting-started-clickhousectl](https://clickhouse.com/blog/getting-started-clickhousectl)

## Summary

clickhousectl (alias chctl) is a single CLI that manages local ClickHouse versions, isolated named servers, project scaffolding and ClickHouse Cloud services. Shared version binaries, per-directory named servers with auto-assigned ports, and a standard clickhouse/ layout for tables, materialized views, queries and seed data make side-by-side upgrade testing straightforward. Cloud auth is deliberately split: browser OAuth grants read-only access, while service creation, scaling and schema changes require an API key, a guard aimed at agent-driven use. The tool also installs Claude Code skills for local dev and cloud deploy, and fits into CI via a static binary, env-var auth and JSON output, with a sample GitHub Actions schema-validation workflow.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)

## Prerequisites

- ClickHouse basics ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- command-line usage

## Keywords

clickhousectl, ClickHouse, ClickHouse Cloud, GitHub Actions, Claude Code, MergeTree

## Related posts

- [What's new in clickhousectl v0.6.0](https://swe.quest/articles/what-s-new-in-clickhousectl-v0-6-0-b37bf0a4f688f37d.md): ClickHouse · 2026-11-19 · Medium · 21 min read · Developer tools, Databases, Cloud platforms, PostgreSQL
  clickhousectl v0.6.0 makes local projects work like Git: any directory containing \`.clickhouse/\` is a project root discovered from subdirectories, \`CLICKHOUSECTL\_PROJECT\_DIR\` pins the root, and layered \`config.d\` directories let teams check server config into the repo.
- [Agentic infrastructure with clickhousectl: a distributed ClickStack across three continents](https://swe.quest/articles/agentic-infrastructure-with-clickhousectl-a-distributed-clickstack-across-three-d01a61602ef37a05.md): ClickHouse · 2026-07-22 · Medium · 7 min read · Observability, AI agents, Analytics & OLAP, Developer tools, Cloud platforms
  A coding agent using the clickhousectl CLI stood up three ClickHouse Cloud services in us-east-1, eu-west-1 and ap-northeast-1, each ingesting OpenTelemetry logs, traces and metrics locally, with a federated global view in Europe for the ClickStack UI.
- [What's new in clickhousectl v0.4.0](https://swe.quest/articles/what-s-new-in-clickhousectl-v0-4-0-48a57f2710e4f6e3.md): ClickHouse · 2026-07-31 · Medium · 4 min read · Developer tools, Analytics & OLAP, Data pipelines, Cloud platforms
  clickhousectl v0.4.0 adds horizontal autoscaling flags for ClickHouse Cloud services (min/max replicas, mutually exclusive with vertical memory-range flags), beta ClickPipe schema discovery for Kafka and Kinesis sources, and new ingestion controls such as --skip-initial-load, --start-after for continuous object-storage pipes and --server-id for MySQL CDC pipes.
- [clickhousectl v0.2.0: Postgres, ClickPipes and more](https://swe.quest/articles/clickhousectl-v0-2-0-postgres-clickpipes-and-more-78a4d21808758ecd.md): ClickHouse · 2026-05-20 · Medium · 5 min read · Developer tools, Analytics & OLAP, PostgreSQL, Data pipelines, Cloud platforms
  clickhousectl v0.2.0 adds Postgres management, both local (Docker-backed, keyed on name and major version 16–18) and as ClickHouse Cloud managed Postgres.
- [New Terraform provider: Manage ClickHouse database users, roles, and privileges with code](https://swe.quest/articles/new-terraform-provider-manage-clickhouse-database-users-roles-and-privileges-de303daee5cfd5b2.md): ClickHouse · 2025-06-20 · Medium · 6 min read · Infrastructure as code, Identity & auth, Databases
  ClickHouse's new clickhousedbops Terraform provider, now generally available, manages databases, users, roles and privilege grants on both ClickHouse Cloud and self-hosted instances.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
