added influx dashboards command, deprecated influx repl, resovles #1270

pull/1387/head
Scott Anderson 2020-08-06 12:25:47 -06:00
parent 0a1ce7588e
commit dd593bc495
1 changed files with 42 additions and 0 deletions

View File

@ -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
```