update influxdb3 option list formats, closes #5937 (#5938)

pull/5939/head
Scott Anderson 2025-03-28 08:16:13 -06:00 committed by GitHub
parent 4a74f03973
commit 5318050581
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 13 deletions

View File

@ -18,14 +18,14 @@ influxdb3 create table [OPTIONS] \
## Options
| Option | | Description |
| :----- | :-------------- | :--------------------------------------------------------------------------------------- |
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
| | `--token` | Authentication token |
| | `--tags` | _({{< req >}})_ Space-separated list of tag columns to include in the table |
| | `--fields` | Space-separated list of field columns to include in the table |
| `-h` | `--help` | Print help information |
| Option | | Description |
| :----- | :----------- | :--------------------------------------------------------------------------------------- |
| `-H` | `--host` | Host URL of the running {{< product-name >}} server (default is `http://127.0.0.1:8181`) |
| `-d` | `--database` | _({{< req >}})_ Name of the database to operate on |
| | `--token` | Authentication token |
| | `--tags` | _({{< req >}})_ Comma-separated list of tag columns to include in the table |
| | `--fields` | Comma-separated list of field columns and their types to include in the table |
| `-h` | `--help` | Print help information |
> [!Important]
>
@ -62,8 +62,8 @@ In the examples below, replace the following:
```bash
influxdb3 create table \
--tags tag1 tag2 tag3 \
--database DATABASE_NAME
--tags tag1,tag2,tag3 \
--database DATABASE_NAME \
TABLE_NAME
```
@ -73,9 +73,9 @@ influxdb3 create table \
```bash
influxdb3 create table \
--tags room sensor_id \
--fields temp:float64 hum:float64 co:int64 \
--database DATABASE_NAME
--tags room,sensor_id \
--fields temp:float64,hum:float64,co:int64 \
--database DATABASE_NAME \
TABLE_NAME
```