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.


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.

    Note: 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.


authAuthorization management commands
bucketBucket management commands
helpHelp about any command
orgOrganization management commands
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


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