You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/nightly/en/reference/command-lines.md
+118-3Lines changed: 118 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,17 @@
1
1
# Greptime Command Line Interface
2
2
3
-
The `greptime` command provided by the pre-built binary can start/stop GreptimeDB and pass configuration options. To execute the binary with `greptime` instead of the ad-hoc `./greptime`, you might need to move the binary into the system `bin` directory or add the binary path to the `PATH` environment variable.
3
+
The `greptime` command can start/stop GreptimeDB and pass configuration options.
4
+
5
+
## Install the Greptime CLI
6
+
7
+
The Greptime CLI comes bundled with the GreptimeDB binary.
8
+
After [installing GreptimeDB](/getting-started/installation/overview.md),
9
+
you can execute the `./greptime` command within the GreptimeDB directory.
10
+
11
+
For convenience, if you wish to run commands using `greptime` instead of `./greptime`,
12
+
consider moving the CLI binary to your system's `bin` directory or appending the binary's path to your `PATH` environment variable.
13
+
14
+
## CLI Options
4
15
5
16
The `help` command lists all available commands and options of `greptime`.
6
17
@@ -26,7 +37,111 @@ Options:
26
37
-`--log-dir=[dir]` specify logs directory, `/tmp/greptimedb/logs` by default.
27
38
-`--log-level=[info | debug | error | warn | trace]` specify the log level, `info` by default.
28
39
29
-
## Start service with configurations
40
+
### Global options
41
+
42
+
-`-h`/`--help`: Print help information;
43
+
-`-V`/`--version`: Print version information;
44
+
-`--log-dir <LOG_DIR>`: The logging directory;
45
+
-`--log-level <LOG_LEVEL>`: The logging level;
46
+
47
+
### Datanode subcommand options
48
+
49
+
You can list all the options from the following command:
50
+
51
+
```
52
+
greptime datanode start --help
53
+
```
54
+
55
+
-`-c`/`--config-file`: The configuration file for datanode;
56
+
-`--data-home`: Database storage root directory;
57
+
-`--env-prefix <ENV_PREFIX>`: The prefix of environment variables, default is `GREPTIMEDB_DATANODE`;
58
+
-`--http-addr <HTTP_ADDR>`: HTTP server address;
59
+
-`--http-timeout <HTTP_TIMEOUT>`: HTTP request timeout in seconds.
0 commit comments