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
    1. # Create an authorization with read and write access to bucket 00xX00o0X001
    2. # but only read access to bucket 00xX00o0X002
    3. influx v1 auth create \
    4. --read-bucket 00xX00o0X001 \
    5. --write-bucket 00xX00o0X001 \
    6. --username example-user