InfluxDB Docs

influx query – Execute queries from the influx CLI

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.


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


FlagDescriptionInput type
-h, --helpHelp for the query command
--org-idThe organization IDstring

Global Flags

FlagDescriptionInput type
--hostHTTP address of InfluxDB (default http://localhost:9999)string
--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 callsstring