All apps/InfluxDB CLI

InfluxDB CLI

influxdb-cli

The command-line client for managing InfluxDB resources.

Runs as influx|macOS, Linux, Windows|docs.influxdata.com

Command form

ai-draft · 2 tasks · 8 fields

Run a Flux query against InfluxDB 2.x, from a literal string or a file. The API token is left out; use a saved CLI config or INFLUX_TOKEN.

Opens the form; the finished command lands at your prompt, unrun
otty gui influxdb-cli

influx query

Query InfluxDB
Query InfluxDBExample values, fixed in this page — nothing here reaches a terminal
Basic
Flux query*
string
Organization
string
TasksEach one presets the form for one job
Run a query string
queryorg
Run a query file
fileorgraw
ParametersOnly these flags are editable in the form
Flux query
string · positional 0
Flux script file
path
--file-f
Organization
string
--org-o
Host URL
url
--host
CLI config name
string
--active-config-c
Raw annotated CSV
boolean
--raw-r
Profilers
Comma-separated, for example operator,query.
string
--profilers-p
Skip TLS verification
boolean
--skip-verify
SourcesEvery flag above is checked against these
docs
influx query [query literal] [flags] | `-c` | `--active-config` | CLI configuration to use for command | | `-f` | `--file` | Path to Flux script file | | | `--host` | HTTP address of InfluxDB (default `http://localhost:8086`) | | `-o` | `--org` | Organization name (mutually exclusive with `--org-id`) | | `-p` | `--profilers`…
manual2026-10-27

docs.influxdata.com

Before it fills your prompt, Otty checks the installed influx against its version. A form that does not match your version is not offered.