'influx' is the command line program for interacting with an InfluxDB server.
In the first form, the program starts a CLI that can be used to write data or query the database. The command line is described in *COMMAND LINE*.
In the second form, this will execute a single command, usually a query. This is the equivalent of starting the command line, running one command, and then exiting.
In the third form, this imports a previously exported database to the database.
The fourth form outputs the version of the command line and then immediately exits.
OPTIONS
-------
-host <host>::
Host to connect to. Default is localhost.
-port <port>::
Port to use when connecting to the host. Default is 8086.
-database <database>::
Database to use when connecting to the database.
-username <username>::
Username to connect to the server.
-password <password>::
Password to connect to the server. If left blank, this will prompt for a password.
-ssl:
Use https for requests.
-unsafeSsl::
Set this with '-ssl' to allow unsafe connections.
-execute <command>::
Executes the command and exits.
-format <json|csv|column>::
Sets the format of the server responses. Default is column.
-precision <rfc3339|h|m|s|ms|u|ns>::
Specifies the format of the timestamp. Default is ns.