3.3 KiB
3.3 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 |
query | Execute a Flux query |
repl | Interactive REPL (read-eval-print-loop) |
setup | Create default username, password, org, bucket, etc. |
task | Task management commands |
user | User management commands |
write | Write points to InfluxDB |
Flags
Flag | Description | Input type |
---|---|---|
-h , --help |
Help for the influx command | |
--host |
HTTP address of InfluxDB (default http://localhost:9999 ) |
string |
--local |
Run commands against the local filesystem | |
-t , --token |
API token to use in client calls | string |