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

SYNOPSIS

influx [options]

DESCRIPTION

influx is an interactive shell to InfluxDB.

OPTIONS

-version Display the version and exit.

-host <host name>

Host to connect to.

-port <port>

Port to connect to.

-database <database name>

Database to connect to the server.

-password <password>

Password to connect to the server. Leaving blank will prompt for password.

-username <username>

Username to connect to the server.

-dump

Dump the contents of the given database to stdout.

-execute <command>

Execute command and quit.

-format <json|csv|column>

Format specifies the format of the server responses: json, csv, or column.

-pretty

Turns on pretty print for the json format.

SEE ALSO

influxd(1)

AUTHOR

Alexandre Viau (alexandre@alexandreviau.net)

Copied to clipboard