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.


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.


applyApply an InfluxDB template
authAuthorization management commands
backupBack up data
bucketBucket management commands
completionGenerate completion scripts
configConfiguration management commands
deleteDelete points from InfluxDB
exportExport resources as a template
helpHelp about any command
orgOrganization management commands
pingCheck the InfluxDB /health endpoint
queryExecute a Flux query
replInteractive REPL (read-eval-print-loop)
secretManage secrets
setupCreate default username, password, org, bucket, etc.
stacksManage InfluxDB stacks
taskTask management commands
templateSummarize and validate an InfluxDB template
transpileManually transpile an InfluxQL query to Flux
userUser management commands
writeWrite 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.


-h--helpHelp for the influx command

New! Cloud or OSS?