InfluxDB Docs

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]

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:

  1. Set the INFLUX_TOKEN environment variable using your token.

    export INFLUX_TOKEN=oOooYourAuthTokenOoooOoOO==
  2. Store your token in ~/.influxdbv2/credentials. The content of the credentials 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.

Commands

CommandDescription
authAuthorization management commands
bucketBucket management commands
deleteDelete points from InfluxDB
helpHelp about any command
orgOrganization management commands
pingCheck the InfluxDB /health endpoint
queryExecute a Flux query
replInteractive REPL (read-eval-print-loop)
setupCreate default username, password, org, bucket, etc.
taskTask management commands
userUser management commands
writeWrite points to InfluxDB

Flags

FlagDescriptionInput type
-h, --helpHelp for the influx command
--hostHTTP address of InfluxDB (default http://localhost:9999)string
--localRun commands against the local filesystem
-t, --tokenAPI token to use in client callsstring