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
  1. influx bucket create --name example-bucket
Create a bucket that retains data for 30 days
Create a bucket with a description
  1. influx bucket create \
  2. --name example-bucket \
  3. --description "Example bucket description"
Create a bucket with a custom shard group duration
Create a bucket with an explicit schema
  1. influx bucket create \
  2. --name my_schema_bucket \
  3. --schema-type explicit