influx v1 auth create
influx v1 auth create command creates a legacy authorization with the InfluxDB 1.x compatibility API.
influx v1 auth create [flags]
|Flag||Description||Input type||Maps to ?|
|Config name to use for command||string|
|Path to the influx CLI configurations (default: ||string|
|Help for the |
|Hide the table headers (default: |
|HTTP address of InfluxDB||string|
|Output data as JSON (default: |
|Don’t prompt for a password (to use the token, you must set a password with |
|Organization name (mutually exclusive with ||string|
|Organization ID (mutually exclusive with ||string|
|Password to set on the authorization|
|Bucket ID to assign read permissions to||stringArray|
|Skip TLS certificate verification|
|(Required) Token username||string|
|Bucket ID to assign write permissions to||stringArray|
The examples below assume your InfluxDB host, organization, and token are
provided by either the active
influx CLI configuration or by environment variables (
If you do not have a CLI configuration set up or the environment variables set, include these required credentials for each command with the following flags:
--host: InfluxDB host
--org-id: InfluxDB organization name or ID
-t, --token: InfluxDB API token
Create a v1 authorization with read and write permissions
# Create an authorization with read and write access to bucket 00xX00o0X001 # but only read access to bucket 00xX00o0X002 influx v1 auth create \ --read-bucket 00xX00o0X001 \ --read-bucket 00xX00o0X002 \ --write-bucket 00xX00o0X001 \ --username example-user
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:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.