influx

InfluxDB command-line client.

TLDR

Connect to an InfluxDB running on localhost with no credentials

$ influx
copy

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

$ influx -username [username] -password ""
copy

Connect to a specific host

$ influx -host [hostname]
copy

Use a specific database

$ influx -database [database_name]
copy

Execute a given command

$ influx -execute "[influxql_command]"
copy

Return output in a specific format

$ influx -execute "[influxql_command]" -format [json|csv|column]
copy

Copied to clipboard
sandbox