`b2 help update-bucket` should show examples of valid syntax
b2 help update-bucket and b2 update-bucket does not include examples of correct json syntax which can be a little finicky for a user to guess at without an example.
Here's an example of the equivalent to "Keep only the last version of the file" from the GUI of the B2 website:
b2 update-bucket --lifecycleRules '[{"daysFromHidingToDeleting": 1, "daysFromUploadingToHiding": null, "fileNamePrefix": ""}]' BucketName allPrivate
Perhaps an example of corsRules and bucketInfo may be useful as well.
Thanks!
That's a good point actually!
Would you like to do the honors and add the example to the help syntax?
Thanks @clunkclunk, it took me finding your example here to finally get the correct syntax. +1