Beta
The OptiTech Object Storage is in Beta. Share your feedback on Discord or via the OptiTech Console.
The buckets command manages branch object-storage buckets and their objects. Buckets belong to a branch; the object subcommands work with the objects inside a bucket.
optitech buckets create
Creates a bucket on a branch.
optitech bucket create <name> [options]Create a private bucket on a branch:
optitech buckets create my-bucket --access-level privateoptitech buckets list
Lists the buckets on a branch.
optitech bucket list [options]List the buckets on a branch with json output:
optitech buckets list --output jsonoptitech buckets delete
Deletes a bucket from a branch.
optitech bucket delete <name> [options]optitech buckets delete my-bucketBucket objects
Lists, downloads, uploads, or deletes objects in a bucket.
optitech buckets object list
Lists objects in a bucket.
optitech bucket object list <bucket>[/<prefix>] [options]List the objects under a prefix, collapsing keys into folders:
optitech buckets object list my-bucket/images --delimiter /optitech buckets object get
Downloads an object from a bucket to a local file.
optitech bucket object get <bucket>/<key> [options]optitech buckets object get my-bucket/images/logo.png --file ./logo.pngoptitech buckets object put
Uploads a local file to a bucket as an object.
optitech bucket object put <bucket>/<key> [options]Upload a file, optionally setting the Content-Type to store it with:
optitech buckets object put my-bucket/images/logo.png --file ./logo.png
optitech buckets object put my-bucket/notes/readme.txt --file ./readme.txt --content-type text/plainoptitech buckets object delete
Deletes an object, or every object under a prefix.
optitech bucket object delete <bucket>/<key> [options]With --recursive, the target is treated as a prefix, which must end with /.
Delete a single object, or every object under a prefix:
optitech buckets object delete my-bucket/images/logo.png
optitech buckets object delete my-bucket/images/ --recursive