From dd593bc4951e098c28bd2a6ceeda83e07d619ea0 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Thu, 6 Aug 2020 12:25:47 -0600 Subject: [PATCH] added influx dashboards command, deprecated influx repl, resovles #1270 --- .../reference/cli/influx/dashboards/_index.md | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 content/v2.0/reference/cli/influx/dashboards/_index.md diff --git a/content/v2.0/reference/cli/influx/dashboards/_index.md b/content/v2.0/reference/cli/influx/dashboards/_index.md new file mode 100644 index 000000000..81b90d7d4 --- /dev/null +++ b/content/v2.0/reference/cli/influx/dashboards/_index.md @@ -0,0 +1,42 @@ +--- +title: influx dashboards +description: > + The `influx dashboards` command lists existing InfluxDB dashboards. +menu: + v2_0_ref: + name: influx dashboards + parent: influx +weight: 101 +v2.0/tags: [telegraf] +--- + +The `influx dashboards` command lists existing InfluxDB dashboards. + +## Usage +```sh +influx dashboards [flags] +influx dashboards [command] +``` + +## Flags +| Flag | | Description | Input type | {{< cli/mapped >}} | +|:---- |:--- |:----------- |:----------: |:------------------ | +| | `--configs-path` | Path to `influx` CLI configurations (default `~/.influxdbv2/configs`) | string |`INFLUX_CONFIGS_PATH` | +| `-h` | `--help` | Help for the `dashboards` command | | | +| | `--hide-headers` | Hide table headers | | `INFLUX_HIDE_HEADERS` | +| | `--host` | HTTP address of InfluxDB (default `http://localhost:9999`) | string | `$INFLUX_HOST` | +| `-i` | `--id` | Dashboard ID to retrieve | string | | +| | `--json` | Output data as JSON | | `INFLUX_OUTPUT_JSON` | +| `-o` | `--org` | Organization name | string | `INFLUX_ORG` | +| | `--org-id` | Organization ID | string | `INFLUX_ORG_ID` | +| | `--skip-verify` | Skip TLS certificate verification | | | +| `-t` | `--token` | Authentication token | string | `INFLUX_TOKEN` | + +## Examples +```sh +# List all known dashboards +influx dashboards + +# List all known dashboards matching IDs +influx dashboards -i $ID1 -i $ID2 +```