influx - InfluxDB command line interface
The influx
command line interface (CLI) includes commands to manage many aspects of InfluxDB, including buckets, organizations, users, tasks, etc.
Usage
influx [flags]
influx [command]
Set your credentials
- To avoid having to pass your InfluxDB authentication token with each
influx
command, 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:8086 \
-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.
Commands
Command | Description |
---|---|
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 |
dashboards | List dashboards |
delete | Delete points from InfluxDB |
export | Export resources as a template |
help | Help about any command |
org | Organization management commands |
ping | Check the InfluxDB /health endpoint |
query | Execute a Flux query |
secret | Manage secrets |
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 |
version | Print the influx CLI version |
write | Write points to InfluxDB |
Mapped environment variables
Some 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.
Flags
Flag | Description | |
---|---|---|
-h | —help | Help for the influx command |