HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

influx — InfluxDB v1 client. More information: <https://docs.influxdata.com/influxdb/v1/tools/influx-cli/use-

Submitted by: @import:tldr-pages··
0
Viewed 0 times
httpscommandclientinfluxinfluxdbcliinformationmore

Problem

How to use the influx command: InfluxDB v1 client. More information: <https://docs.influxdata.com/influxdb/v1/tools/influx-cli/use-influx-cli/>.

Solution

influx — InfluxDB v1 client. More information: <https://docs.influxdata.com/influxdb/v1/tools/influx-cli/use-influx-cli/>.

Connect to an InfluxDB running on localhost with no credentials:
influx


Connect with a specific username (will prompt for a password):
influx -username {{username}} -password ""


Connect to a specific host:
influx -host {{hostname}}


Use a specific database:
influx -database {{database_name}}


Execute a given command:
influx -execute "{{influxql_command}}"


Return output in a specific format:
influx -execute "{{influxql_command}}" -format {{json|csv|column}}

Code Snippets

Connect to an InfluxDB running on localhost with no credentials

influx

Connect with a specific username (will prompt for a password)

influx -username {{username}} -password ""

Connect to a specific host

influx -host {{hostname}}

Use a specific database

influx -database {{database_name}}

Execute a given command

influx -execute "{{influxql_command}}"

Context

tldr-pages: common/influx

Revisions (0)

No revisions yet.