influx - InfluxDB command line interface
influx command line interface (CLI) includes commands to manage many aspects of InfluxDB,
including buckets, organizations, users, tasks, etc.
influx [flags] influx [command]
Store your InfluxDB authentication token
To avoid having to pass your InfluxDB authentication token
influx command, use one of the following methods to store your token:
INFLUX_TOKENenvironment variable using your token.
Store your token in
~/.influxdbv2/credentials. The content of the
credentialsfile should be only your token.
If you set up InfluxDB using the CLI, InfluxDB stores your token in the credentials files automatically.
See View tokens for information about retrieving authentication tokens.
|auth||Authorization management commands|
|backup||Back up data|
|bucket||Bucket management commands|
|completion||Generate completion scripts|
|config||Configuration management commands|
|delete||Delete points from InfluxDB|
|help||Help about any command|
|org||Organization management commands|
|ping||Check the InfluxDB |
|pkg||Manage InfluxDB packages|
|query||Execute a Flux query|
|repl||Interactive REPL (read-eval-print-loop)|
|setup||Create default username, password, org, bucket, etc.|
|task||Task management commands|
|transpile||Manually transpile an InfluxQL query to Flux|
|user||User management commands|
|write||Write points to InfluxDB|
Mapped environment variables
influx CLI flags are mapped to environment variables.
Mapped flags get the value of the environment variable.
To override environment variables, set the flag explicitly in your command.
|Help for the |
|Flag||Description||Input type||Maps to ?|
|HTTP address of InfluxDB (default ||string|
|Run commands against the local filesystem|
|Skip certificate verification (use when connecting over TLS with a self-signed certificate)|
|API token to use in client calls||string|
Bug Reports and Feedback
Thank you for being willing to help test InfluxDB v2.0 beta! Feedback and bug reports are welcome and encouraged both for InfluxDB and this documentation. Submit feedback using one of the following methods: