Available with InfluxDB OSS 2.x only
influx setup command initiates the setup process for InfluxDB OSS 2.x instances.
The command does not work with InfluxDB Cloud.
influx setup command walks through the initial InfluxDB OSS setup process,
creating a default user, organization, and bucket.
The Operator token created in the InfluxDB setup process has full read and write access to all organizations in the database.
influx setup [flags]
|Flag||Description||Data type||Maps to ?|
|CLI configuration to use for command||string|
|Primary bucket name||string|
|Path to ||string|
|Skip confirmation prompt|
|Help for the |
|HTTP address of InfluxDB (default ||string|
|Inspect communication with InfluxDB servers.||string|
|Primary organization name||string|
|Password for primary user||string|
|Duration bucket will retain data (0 is infinite, default is 0)||duration|
|Skip TLS certificate verification|
|Token for admin user (auto-generated by default)||string|
--retention units are nanoseconds (
ns), microseconds (
ms), seconds (
s), minutes (
m), hours (
h), days (
d), and weeks (
Start interactive InfluxDB setup
Set up InfluxDB with all required information and skip confirmation
influx setup \ --org example-org \ --bucket example-bucket \ --username example-user \ --password ExAmPl3PA55W0rD \ --force
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, the following resources are available:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.