CLI environment setup
See the getting started docs for how to download and log in to the CLI.
Storage CLI
Create a new bucket
evroc storage bucket create my-bucket
List buckets in the current resource group
evroc storage bucket list
Get information about a specific bucket
evroc storage bucket get my-bucket
List objects in a bucket
evroc storage bucket list my-bucket
Delete an empty bucket
Note: If the bucket isn't empty, it goes into a Pending Deletion state, which can't be reversed. See bucket deletion for more information.
evroc storage bucket delete my-bucket
Examples
Copying objects to/from a bucket in an interactive session
# Create a new bucket
evroc storage bucket create testbucket1
# Create some arbitrary text in a file to test with
echo "The quick brown fox" > foo.txt
# Copy/upload a local file to a bucket object
evroc storage bucket copy --from foo.txt --to bucket://testbucket1/foo.txt
# List objects in bucket
evroc storage bucket list testbucket1
# Copy/download a bucket object to a local file
evroc storage bucket copy --from bucket://testbucket1/foo.txt --to foo-copy.txt
# Delete the object
evroc storage bucket delete bucket://testbucket1/foo.txt
# Delete the bucket
evroc storage bucket delete testbucket1