influxdata / influx-cli

CLI for managing resources in InfluxDB v2
MIT License
61 stars 22 forks source link

Inconsistency in required parameters for bucket commands #507

Open reidkaufmann opened 1 year ago

reidkaufmann commented 1 year ago

One bucket command can specify a bucket by name:

$ influx bucket delete --name test2
ID           Name    Retention    Shard group duration    Organization ID        Schema Type    Deleted
43<redacted>36    test2    infinite    n/a           26<redacted>ca    implicit    true

And another cannot:

$ influx bucket update -r 3w --name test2
Error: Required flag "id" not set

It seems that if delete can look up the bucket by name, then update could as well.