Set up InfluxDB
As you get started with this tutorial, do the following to make sure everything you need is in place.
(Optional) Download, install, and configure the
influx
CLI.The
influx
CLI provides a simple way to interact with InfluxDB from a command line. For detailed installation and setup instructions, see Use the influx CLI.Create an All-Access API token.
Use the InfluxDB UI,
influx
CLI, or InfluxDB API to create an All-Access token.If you haven’t already, download, install, and configure the
influx
CLI.Use the
influx auth create
command to create an All-Access token.Provide the following:
--all-access
flag--host
flag with your InfluxDB region URL-o, --org
or--org-id
flags with your InfluxDB organization name or ID-t, --token
flag with your Operator token
influx auth create \ --all-access \ --host http://cloud2.influxdata.com \ --org <YOUR_INFLUXDB_ORG_NAME> \ --token <YOUR_INFLUXDB_OPERATOR_TOKEN>
Copy the generated token and store it for safe keeping.
We recommend using a password manager or a secret store to securely store sensitive tokens.
Configure authentication credentials.
As you go through this tutorial, interactions with InfluxDB Cloud require your InfluxDB host, organization name or ID, and your API token. There are different methods for providing these credentials depending on which client you use to interact with InfluxDB.
When configuring your token, use the All-Access token you created.
There are three ways to provided authentication credentials to the
influx
CLI:All
influx
CLI examples in this getting started tutorial assume your InfluxDB host, organization, and token are provided by either the activeinflux
CLI configuration or by environment variables.Create a bucket.
Use the InfluxDB UI,
influx
CLI, or InfluxDB API to create a new bucket.If you haven’t already, download, install, and configure the
influx
CLI.Use the
influx bucket create
command to create a new bucket.Provide the following:
-n, --name
flag with the bucket name.- Connection and authentication credentials
influx bucket create --name get-started
Was this page helpful?
Thank you for your feedback!
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, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.