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

> Quickly install ClickHouse using a curl install script

# Quick install

# Install ClickHouse via script using curl

If you don't need to install ClickHouse for production, you can run an install script using curl. The script will determine a suitable binary for your OS.

<Steps>
  <Step>
    <h2 id="install-clickhouse-using-curl">
      Install ClickHouse using curl
    </h2>

    Run the following comand to download a single binary for your operating system.

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

    <Note>
      For Mac users: If you're getting errors that the developer of the binary can't be verified, please see [here](/resources/support-center/knowledge-base/troubleshooting/fix-developer-verification-error-in-macos).
    </Note>
  </Step>

  <Step>
    <h2 id="start-clickhouse-local">
      Start clickhouse-local
    </h2>

    `clickhouse-local` allows you to process local and remote files using ClickHouse's
    powerful SQL syntax and without the need for configuration. Table data is stored
    in a temporary location, meaning that after a restart of `clickhouse-local`
    previously created tables are no longer available.

    Run the following command to start [clickhouse-local](/concepts/features/tools-and-utilities/clickhouse-local):

    ```bash theme={null}
    ./clickhouse
    ```
  </Step>

  <Step>
    <h2 id="start-clickhouse-server">
      Start clickhouse-server
    </h2>

    Should you wish to persist data, you'll want to run `clickhouse-server`. You can
    start the ClickHouse server using the following command:

    ```bash theme={null}
    ./clickhouse server
    ```
  </Step>

  <Step>
    <h2 id="start-clickhouse-client">
      Start clickhouse-client
    </h2>

    With the server up and running, open a new terminal window and run the following command
    to launch `clickhouse-client`:

    ```bash theme={null}
    ./clickhouse client
    ```

    You will see something like this:

    ```response theme={null}
    ./clickhouse client
    ClickHouse client version 24.5.1.117 (official build).
    Connecting to localhost:9000 as user default.
    Connected to ClickHouse server version 24.5.1.

    local-host :)
    ```

    Table data is stored in the current directory and will still be available after a restart
    of the ClickHouse server. If necessary, you can pass
    `-C config.xml` as an additional command line argument to `./clickhouse server`
    and provide further configuration in a configuration
    file. All available configuration settings are documented [here](/reference/settings/server-settings/settings) and in the
    [example configuration file
    template](https://github.com/ClickHouse/ClickHouse/blob/master/programs/server/config.xml).

    You're now ready to start sending SQL commands to ClickHouse!

    <Tip>
      The [Quick Start](/get-started/setup/install) walks you through the steps for creating tables and inserting data.
    </Tip>
  </Step>
</Steps>
