influxdb3 CLI
The influxdb3 CLI writes and queries data and administers your
InfluxDB 3 Cloud instance from the command line.
Because InfluxDB 3 Cloud is fully managed, the CLI connects to your hosted
instance instead of running a local server.
Connect and authenticate
The CLI connects to http://127.0.0.1:8181 by default. Before you run commands,
set your instance host and authenticate:
- Host: Set the
INFLUXDB3_HOST_URLenvironment variable, or pass--host, to your instance host URL. - Authentication:
- For interactive use, log in with the OAuth device-code flow:
influxdb3 auth login --oauth. Don’t setINFLUXDB3_AUTH_TOKENfor interactive use. - For applications and automated clients, use a database token: set the
INFLUXDB3_AUTH_TOKENenvironment variable, or pass--token.
- For interactive use, log in with the OAuth device-code flow:
For setup steps, see Set up InfluxDB 3 Cloud.
Commonly used commands
influxdb3 create database: Create a databaseinfluxdb3 create token --admin: Create a named admin tokeninfluxdb3 create token --permission: Create a scoped database tokeninfluxdb3 show tokens: List tokensinfluxdb3 delete token: Delete a tokeninfluxdb3 write: Write data to a databaseinfluxdb3 query: Query data in a database
Not available in InfluxDB 3 Cloud
InfluxDB 3 Cloud is built on the InfluxDB 3 Enterprise engine, but InfluxData
manages the server and exposes only a subset of the Enterprise API.
The CLI subcommands documented in this section are supported.
Other influxdb3 subcommands that work with Enterprise might not work with
InfluxDB 3 Cloud.
The following commands don’t work or don’t apply:
| Command | Reason or alternative |
|---|---|
influxdb3 serve | InfluxData runs the server for you. |
influxdb3 stop node, influxdb3 remove node | InfluxData manages cluster nodes. |
influxdb3 create user, influxdb3 update user, influxdb3 update user-roles, influxdb3 delete user, influxdb3 show users | Manage users and roles in the Admin UI. |
influxdb3 install package | Package installation is disabled. |
influxdb3 create trigger with --upload, or with a gh: plugin path | You can’t upload plugins or fetch them from a plugin repository. Use --path with the filename of a preinstalled plugin. |
influxdb3 create trigger with a table:, all_tables, or request: trigger spec | Only every: and cron: (schedule) triggers are allowed. |
influxdb3 create file_index, influxdb3 delete file_index | The file index API isn’t available. |
influxdb3 create query_group, influxdb3 update query_group, influxdb3 delete query_group, influxdb3 show query_groups | The query group API isn’t available. |
influxdb3 loadcap commands | The load capture API isn’t available. |
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 3 Cloud and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.