InfluxDB Docs

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

influx query [query literal or @/path/to/query.flux] [flags]

Flags

FlagDescriptionInput typeMaps to ?
-h, --helpHelp for the query command
-o, --orgOrganization namestringINFLUX_ORG
--org-idOrganization IDstringINFLUX_ORG_ID

Global Flags

FlagDescriptionInput typeMaps to ?
--hostHTTP address of InfluxDB (default http://localhost:9999)stringINFLUX_HOST
--localRun commands against the local filesystem
--skip-verifySkip certificate verification (use when connecting over TLS with a self-signed certificate)
-t, --tokenAPI token to use in client callsstringINFLUX_TOKEN