influx v1 auth create
- InfluxDB 2.0.0+
- Updated in CLI v2.0.3
Authentication credentials
The examples below assume your InfluxDB host, organization, and token are provided by the . If you do not have a CLI configuration set up, use the appropriate flags to provide these required credentials.
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 \
--write-bucket 00xX00o0X001 \
--username example-user