influx template

    • influx CLI 2.0.1+
    • InfluxDB 2.0.1+
    FlagDescriptionInput TypeMaps to ?
    —disable-colorDisable color in output
    —disable-table-bordersDisable table borders
    -e—encodingTemplate encoding (yaml,yml,json, or )string
    -f—filePath to template file (supports HTTP(S) URLs or file paths)stringArray
    -h—helpHelp for the template command
    —jsonOutput data as JSON (default false)
    -R—recurseRecurse through files in the directory specified in -f, —file

    Authentication credentials

    Summarize an InfluxDB template from a local file
    1. influx template --file /path/to/template.yml
    Summarize InfluxDB templates from multiple files
    Summarize an InfluxDB template from a URL
    1. 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
    1. influx template \
    2. --encoding json