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.

Usage

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

Flags

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

Global flags

Global flagDescriptionInput type
--hostHTTP address of InfluxDB (default http://localhost:9999)string
--localRun commands locally against the filesystem
-t, --tokenAPI token to be used throughout client callsstring