| title |
description |
menu |
| 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.
|
| v2_0_ref |
| name |
parent |
weight |
| influx query |
influx |
1 |
|
|
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
| Flag |
Description |
Input type |
-h, --help |
Help for the query command |
|
--org-id |
The organization ID |
string |
Global flags
| Global flag |
Description |
Input type |
--host |
HTTP address of InfluxDB (default http://localhost:9999) |
string |
--local |
Run commands locally against the filesystem |
|
-t, --token |
API token to be used throughout client calls |
string |