3.2 KiB
3.2 KiB
title | seotitle | description | menu | weight | v2.0/tags | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
influx - InfluxDB command line interface | influx - InfluxDB command line interface | The influx CLI includes commands to manage many aspects of InfluxDB, including buckets, organizations, users, tasks, etc. |
|
101 |
|
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]
{{% note %}}
Store your InfluxDB authentication token
To avoid having to pass your InfluxDB authentication token
with each influx
command, use one of the following methods to store your token:
-
Set the
INFLUX_TOKEN
environment variable using your token.export INFLUX_TOKEN=oOooYourAuthTokenOoooOoOO==
-
Store your token in
~/.influxdbv2/credentials
. The content of thecredentials
file 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. {{% /note %}}
Commands
Command | Description |
---|---|
auth | Authorization management commands |
bucket | Bucket management commands |
delete | Delete points from InfluxDB |
help | Help about any command |
org | Organization management commands |
ping | Check the InfluxDB /health endpoint |
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 |
{{% influx-cli-global-flags %}}
Flags
Flag | Description |
---|---|
-h , --help |
Help for the influx command |