influx query

The influx query command executes a literal Flux query provided as a string or a literal Flux query contained in a file by specifying the file prefixed with an @ sign.

Usage

  1. influx query [query literal] [flags]

Flags

FlagDescriptionInput typeMaps to ?
-c—active-configCLI configuration to use for commandstring
—configs-pathPath to influx CLI configurations (default ~/.influxdbv2/configs)stringINFLUX_CONFIGS_PATH
-f—filePath to Flux script filestring
-h—helpHelp for the query command
—hostHTTP address of InfluxDB (default http://localhost:8086)stringINFLUX_HOST
-o—orgOrganization namestringINFLUX_ORG
—org-idOrganization IDstringINFLUX_ORG_ID
-r—rawOutput raw query results (annotated CSV)
—skip-verifySkip TLS certificate verification
-t—tokenAuthentication tokenstringINFLUX_TOKEN

query