Skip to content

Commit 092a48d

Browse files
fix: updating last values cache CLI and usage (#5795)
1 parent 92ebd7f commit 092a48d

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

content/shared/v3-core-get-started/_index.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -472,19 +472,18 @@ For more information about the Python client library, see the [`influxdb3-python
472472
You can use the `influxdb3` CLI to create a last value cache.
473473
474474
```
475-
Usage: $ influxdb3 create last-cache [OPTIONS] -d <DATABASE_NAME> -t <TABLE>
475+
Usage: $ influxdb3 create last_cache [OPTIONS] -d <DATABASE_NAME> -t <TABLE> [CACHE_NAME]
476476
477477
Options:
478-
-h, --host <HOST_URL> URL of the running InfluxDB 3 server
479-
-d, --database <DATABASE_NAME> The database to run the query against
480-
--token <AUTH_TOKEN> The token for authentication
478+
-h, --host <HOST_URL> URL of the running InfluxDB 3 Core server [env: INFLUXDB3_HOST_URL=]
479+
-d, --database <DATABASE_NAME> The database to run the query against [env: INFLUXDB3_DATABASE_NAME=]
480+
--token <AUTH_TOKEN> The token for authentication [env: INFLUXDB3_AUTH_TOKEN=]
481481
-t, --table <TABLE> The table for which the cache is created
482-
--cache-name <CACHE_NAME> Give a name for the cache
483-
--help Print help information
484482
--key-columns <KEY_COLUMNS> Columns used as keys in the cache
485483
--value-columns <VALUE_COLUMNS> Columns to store as values in the cache
486484
--count <COUNT> Number of entries per unique key:column
487485
--ttl <TTL> The time-to-live for entries (seconds)
486+
--help Print help information
488487
489488
```
490489
@@ -501,7 +500,7 @@ An example of creating this cache in use:
501500
| Alpha | webserver | 2024-12-11T10:02:00 | 25.3 | Warn |
502501
503502
```bash
504-
influxdb3 create last-cache --database=servers --table=cpu --cache-name=cpuCache --key-columns=host,application --value-columns=usage_percent,status --count=5
503+
influxdb3 create last_cache --database=servers --table=cpu --key-columns=host,application --value-columns=usage_percent,status --count=5 cpuCache
505504
```
506505
507506
#### Query a Last values cache

content/shared/v3-enterprise-get-started/_index.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -467,19 +467,18 @@ For more information about the Python client library, see the [`influxdb3-python
467467
You can use the `influxdb3` CLI to create a last value cache.
468468
469469
```
470-
Usage: $ influxdb3 create last-cache [OPTIONS] -d <DATABASE_NAME> -t <TABLE>
470+
Usage: $ influxdb3 create last_cache [OPTIONS] -d <DATABASE_NAME> -t <TABLE> [CACHE_NAME]
471471
472472
Options:
473-
-h, --host <HOST_URL> URL of the running InfluxDB 3 server
474-
-d, --database <DATABASE_NAME> The database to run the query against
475-
--token <AUTH_TOKEN> The token for authentication
473+
-h, --host <HOST_URL> URL of the running InfluxDB 3 Enterprise server [env: INFLUXDB3_HOST_URL=]
474+
-d, --database <DATABASE_NAME> The database to run the query against [env: INFLUXDB3_DATABASE_NAME=]
475+
--token <AUTH_TOKEN> The token for authentication [env: INFLUXDB3_AUTH_TOKEN=]
476476
-t, --table <TABLE> The table for which the cache is created
477-
--cache-name <CACHE_NAME> Give a name for the cache
478-
--help Print help information
479477
--key-columns <KEY_COLUMNS> Columns used as keys in the cache
480478
--value-columns <VALUE_COLUMNS> Columns to store as values in the cache
481479
--count <COUNT> Number of entries per unique key:column
482480
--ttl <TTL> The time-to-live for entries (seconds)
481+
--help Print help information
483482
484483
```
485484
@@ -496,7 +495,7 @@ An example of creating this cache in use:
496495
| Alpha | webserver | 2024-12-11T10:02:00 | 25.3 | Warn |
497496
498497
```bash
499-
influxdb3 create last-cache --database=servers --table=cpu --cache-name=cpuCache --key-columns=host,application --value-columns=usage_percent,status --count=5
498+
influxdb3 create last_cache --database=servers --table=cpu --key-columns=host,application --value-columns=usage_percent,status --count=5 cpuCache
500499
```
501500
502501
#### Query a Last values cache

0 commit comments

Comments
 (0)