CLI environment setup
See the getting started docs for how to download and log in to the CLI.
Storage CLI
Section titled “Storage CLI”Create a new bucket
Section titled “Create a new bucket”evroc storage bucket create my-bucketList buckets in the current resource group
Section titled “List buckets in the current resource group”evroc storage bucket listGet information about a specific bucket
Section titled “Get information about a specific bucket”evroc storage bucket get my-bucketList objects in a bucket
Section titled “List objects in a bucket”evroc storage bucket list my-bucketDelete an empty bucket
Section titled “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-bucketExamples
Section titled “Examples”Copying objects to/from a bucket in an interactive session
Section titled “Copying objects to/from a bucket in an interactive session”# Create a new bucketevroc storage bucket create testbucket1
# Create some arbitrary text in a file to test withecho "The quick brown fox" > foo.txt
# Copy/upload a local file to a bucket objectevroc storage bucket copy --from foo.txt --to bucket://testbucket1/foo.txt
# List objects in bucketevroc storage bucket list testbucket1
# Copy/download a bucket object to a local fileevroc storage bucket copy --from bucket://testbucket1/foo.txt --to foo-copy.txt
# Delete the objectevroc storage bucket delete bucket://testbucket1/foo.txt
# Delete the bucketevroc storage bucket delete testbucket1