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]
Set your credentials
- To avoid having to pass your InfluxDB authentication token with each
influxcommand, set up a configuration profile if you haven’t already.
- To see if you have a configuration profile, run
influx config. If nothing is displayed, you don’t have a configuration profile.
To configure a profile, in a terminal, run the following command:
# Set up a configuration profile influx config create -n default \ -u http://localhost:9999 \ -o example-org \ -t mySuP3rS3cr3tT0keN \ -a
This configures a new profile named
default and makes the profile active so commands run against this instance.
For more detail, see influx config.
|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|
|setup||Create default username, password, org, bucket, etc.|
|stacks||Manage InfluxDB stacks|
|task||Task management commands|
|telegrafs||Telegraf configuration 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, the following resources are available:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.