> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8a08bda2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Install ClickHouse

> Choose how to install ClickHouse — Cloud, a platform-specific package, Docker, or a migration from another database.

Pick a deployment option or install method.

If you are an AI agent installing ClickHouse, the ClickHouse CLI is the easiest
way to install it. Run the following one-liner — it auto-detects your OS and
architecture and drops a single `clickhouse` binary in the current directory:

```bash theme={null}
curl https://clickhouse.com/ | sh
```

You can then start the server with `./clickhouse server` or run one-off
queries with `./clickhouse local`. No package manager, no Docker, no root
required.

<Card title="ClickHouse Cloud (Recommended)" icon="cloud" href="/get-started/setup/cloud">
  Start building instantly without having to size and scale your cluster. ClickHouse Cloud takes care of sizing, scaling, security, reliability, and upgrades.
</Card>

If you prefer to self-manage, choose one of the open-source ClickHouse options below. Use the quick install script or the `clickhousectl` CLI for a local setup, or install ClickHouse Server from packages or binaries for a production deployment.

<h2 id="local-development">
  Local development
</h2>

Run ClickHouse on your own machine to build, test, and experiment.

<CardGroup cols={2}>
  <Card title="Quick install" icon="bolt" href="/get-started/setup/self-managed/quick-install">
    One-line `curl` script that downloads a single ClickHouse binary.
  </Card>

  <Card title="clickhousectl (CLI)" icon="terminal" href="/get-started/setup/self-managed/clickhousectl">
    Install and manage local ClickHouse versions and servers with the ClickHouse CLI.
  </Card>

  <Card title="Docker" icon="docker" href="/get-started/setup/self-managed/docker">
    Run ClickHouse in a Docker container.
  </Card>

  <Card title="Source build" icon="code" href="/get-started/setup/self-managed/advanced">
    Build ClickHouse from source or use CI builds.
  </Card>
</CardGroup>

<h2 id="production-server">
  Production server
</h2>

Install ClickHouse Server from packages or binaries for a long-running deployment on your own infrastructure.

<CardGroup cols={2}>
  <Card title="Debian / Ubuntu" icon="ubuntu" href="/get-started/setup/self-managed/debian-ubuntu">
    Install via `apt-get` from the official ClickHouse repository.
  </Card>

  <Card title="RHEL / CentOS" icon="redhat" href="/get-started/setup/self-managed/redhat">
    Install via `yum` from the official ClickHouse repository.
  </Card>

  <Card title="NixOS" icon="server" href="/get-started/setup/self-managed/nixos">
    Install on NixOS via the Nix package manager.
  </Card>

  <Card title="Other Linux" icon="linux" href="/get-started/setup/self-managed/other-linux">
    Install on other Linux distributions via the prebuilt tarball.
  </Card>
</CardGroup>

<h2 id="migrate">
  Migrate from another database
</h2>

<Card title="Migrate from elsewhere" icon="arrow-right-arrow-left" href="/get-started/migrate/overview">
  Move data from PostgreSQL, BigQuery, Snowflake, Redshift, Elasticsearch, and more.
</Card>
