Skip to content

Commit 5318050

Browse files
authored
update influxdb3 option list formats, closes #5937 (#5938)
1 parent 4a74f03 commit 5318050

File tree

1 file changed

+13
-13
lines changed
  • content/shared/influxdb3-cli/create

1 file changed

+13
-13
lines changed

content/shared/influxdb3-cli/create/table.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ influxdb3 create table [OPTIONS] \
1818

1919
## Options
2020

21-
| Option | | Description |
22-
| :----- | :-------------- | :--------------------------------------------------------------------------------------- |
23-
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
24-
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
25-
| | `--token` | Authentication token |
26-
| | `--tags` | _({{< req >}})_ Space-separated list of tag columns to include in the table |
27-
| | `--fields` | Space-separated list of field columns to include in the table |
28-
| `-h` | `--help` | Print help information |
21+
| Option | | Description |
22+
| :----- | :----------- | :--------------------------------------------------------------------------------------- |
23+
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
24+
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
25+
| | `--token` | Authentication token |
26+
| | `--tags` | _({{< req >}})_ Comma-separated list of tag columns to include in the table |
27+
| | `--fields` | Comma-separated list of field columns and their types to include in the table |
28+
| `-h` | `--help` | Print help information |
2929

3030
> [!Important]
3131
>
@@ -62,8 +62,8 @@ In the examples below, replace the following:
6262

6363
```bash
6464
influxdb3 create table \
65-
--tags tag1 tag2 tag3 \
66-
--database DATABASE_NAME
65+
--tags tag1,tag2,tag3 \
66+
--database DATABASE_NAME \
6767
TABLE_NAME
6868
```
6969

@@ -73,9 +73,9 @@ influxdb3 create table \
7373

7474
```bash
7575
influxdb3 create table \
76-
--tags room sensor_id \
77-
--fields temp:float64 hum:float64 co:int64 \
78-
--database DATABASE_NAME
76+
--tags room,sensor_id \
77+
--fields temp:float64,hum:float64,co:int64 \
78+
--database DATABASE_NAME \
7979
TABLE_NAME
8080
```
8181

0 commit comments

Comments
 (0)