influx template
- influx CLI 2.0.1+
- InfluxDB 2.0.1+
Flag | | Description | Input Type | Maps to ? |
---|
| —disable-color | Disable color in output | | |
| —disable-table-borders | Disable table borders | | |
-e | —encoding | Template encoding (yaml ,yml ,json , or ) | string | |
-f | —file | Path to template file (supports HTTP(S) URLs or file paths) | stringArray | |
-h | —help | Help for the template command | | |
| —json | Output data as JSON (default false ) | | |
-R | —recurse | Recurse through files in the directory specified in -f , —file | | |
Authentication credentials
Summarize an InfluxDB template from a local file
influx template --file /path/to/template.yml
Summarize InfluxDB templates from multiple files
Summarize an InfluxDB template from a URL
influx template --file https://example.com/path/to/template.yml
Summarize all InfluxDB templates in a directory
Specify the encoding of the InfluxDB template to summarize
influx template \
--encoding json