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.
|apply||Apply an InfluxDB template|
|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|
|export||Export resources as a template|
|help||Help about any command|
|org||Organization management commands|
|ping||Check the InfluxDB |
|query||Execute a Flux query|
|repl||Interactive REPL (read-eval-print-loop)|
|setup||Create default username, password, org, bucket, etc.|
|stacks||Manage InfluxDB stacks|
|task||Task management commands|
|template||Summarize and validate an InfluxDB template|
|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 |
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support or submit feedback, the following resources are available:
- Post in the InfluxData Community.
- Submit documentation issues to the InfluxDB 2.0 documentation repository.
- Submit InfluxDB issues to the InfluxDB repository.
For our InfluxDB Cloud customers, InfluxData Support is also available.