influx bucket create
- influx CLI 2.0.0+
- Updated in CLI v2.2.0
Retention periods
- nanoseconds (
ns
) - microseconds (
us
or µs
) - milliseconds (
ms
) - seconds (
s
) - minutes (
m
) - hours (
h
) - days (
d
) - weeks (
w
)
Authentication credentials
Create a bucket with infinite data retention
influx bucket create --name example-bucket
Create a bucket that retains data for 30 days
Create a bucket with a description
influx bucket create \
--name example-bucket \
--description "Example bucket description"
Create a bucket with a custom shard group duration
Create a bucket with an explicit schema
influx bucket create \
--name my_schema_bucket \
--schema-type explicit