|
1 | 1 | --- |
2 | | -description: 'Quickly install ClickHouse using the ClickHouse CLI' |
3 | | -keywords: ['ClickHouse', 'install', 'quick', 'clickhousectl', 'CLI'] |
| 2 | +description: 'Quickly install ClickHouse using a curl install script' |
| 3 | +keywords: ['ClickHouse', 'install', 'quick', 'curl'] |
4 | 4 | sidebar_label: 'Quick install' |
5 | 5 | slug: /install/quick-install |
6 | 6 | title: 'Quick install' |
7 | 7 | hide_title: true |
8 | 8 | doc_type: 'guide' |
9 | 9 | --- |
10 | 10 |
|
11 | | -If you don't need to install ClickHouse for production, the quickest way to get |
12 | | -set up is using the ClickHouse CLI (`clickhousectl`), which helps you install |
13 | | -local ClickHouse versions, launch servers, run queries and manage ClickHouse |
14 | | -Cloud. |
| 11 | +import QuickInstall from './_snippets/_quick_install.md' |
15 | 12 |
|
16 | | -:::note Windows users |
17 | | -ClickHouse runs natively on Linux and macOS. On Windows, run these steps inside |
18 | | -the [Windows Subsystem for Linux (WSL)](https://learn.microsoft.com/en-us/windows/wsl/about). |
19 | | -::: |
20 | | - |
21 | | -<VerticalStepper> |
22 | | - |
23 | | -## Install the ClickHouse CLI {#install-the-cli} |
24 | | - |
25 | | -```bash |
26 | | -curl https://clickhouse.com/cli | sh |
27 | | -``` |
28 | | - |
29 | | -A `chctl` alias is also created automatically for convenience. |
30 | | - |
31 | | -## Install ClickHouse {#install-clickhouse} |
32 | | - |
33 | | -Install the latest stable version of ClickHouse and make it your default: |
34 | | - |
35 | | -```bash |
36 | | -clickhousectl local use stable |
37 | | -``` |
38 | | - |
39 | | -`local use` installs the version if it isn't already present, sets it as your |
40 | | -default, and creates a `clickhouse` symlink in `~/.local/bin` (on your `PATH`) |
41 | | -so you can invoke the `clickhouse` binary directly. Any later step in these docs |
42 | | -that runs a `clickhouse` command then works as-is. |
43 | | - |
44 | | -:::note[Use vs install] |
45 | | -`clickhousectl local use <version>` installs a version *and* makes it your |
46 | | -default, updating the `clickhouse` symlink on your `PATH`. To download a version |
47 | | -without changing your default or updating the symlink, use |
48 | | -`clickhousectl local install <version>` instead. |
49 | | -::: |
50 | | - |
51 | | -## Start clickhouse-server {#start-clickhouse-server} |
52 | | - |
53 | | -```bash |
54 | | -clickhousectl local server start |
55 | | -``` |
56 | | - |
57 | | -The server runs in the background. To verify it's running: |
58 | | - |
59 | | -```bash |
60 | | -clickhousectl local server list |
61 | | -``` |
62 | | - |
63 | | -## Start clickhouse-client {#start-clickhouse-client} |
64 | | - |
65 | | -```bash |
66 | | -clickhousectl local client |
67 | | -``` |
68 | | - |
69 | | -You will see something like this: |
70 | | - |
71 | | -```response |
72 | | -ClickHouse client version 24.5.1.117 (official build). |
73 | | -Connecting to localhost:9000 as user default. |
74 | | -Connected to ClickHouse server version 24.5.1. |
75 | | -
|
76 | | -local-host :) |
77 | | -``` |
78 | | - |
79 | | -You're now ready to start sending SQL commands to ClickHouse! |
80 | | - |
81 | | -:::tip |
82 | | -The [Quick Start](/get-started/quick-start) walks you through the steps for creating tables and inserting data. |
83 | | -::: |
84 | | - |
85 | | -</VerticalStepper> |
| 13 | +<QuickInstall/> |
0 commit comments