LinuxCommandLibrary

influx

command-line interface for InfluxDB time-series database

TLDR

Start interactive shell

$ influx
copy
Connect to host
$ influx -host [hostname] -port [8086]
copy
Execute query
$ influx -execute "[SELECT * FROM measurement]"
copy
Use specific database
$ influx -database [mydb]
copy
Import data
$ influx -import -path [data.txt]
copy
Authenticate
$ influx -username [user] -password [pass]
copy

SYNOPSIS

influx [options]

DESCRIPTION

influx is the command-line interface for InfluxDB time-series database. It provides an interactive shell for querying and managing data.
The tool supports InfluxQL for querying time-series data. It can import, export, and manage databases and measurements.

PARAMETERS

-host HOST

InfluxDB server hostname.
-port PORT
Server port (default 8086).
-database DB
Database to use.
-execute QUERY
Execute query and exit.
-import
Import data from file.
-path FILE
File path for import.
-username USER
Authentication username.
-password PASS
Authentication password.
-precision UNIT
Timestamp precision (ns, u, ms, s).
--help
Display help information.

CAVEATS

InfluxDB must be running. Authentication may be required. InfluxQL syntax differs from SQL.

HISTORY

influx is part of InfluxDB, created by InfluxData as an open-source time-series database platform.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community