Skip to content

CLI environment setup

See the getting started docs for how to download and log in to the CLI.

Terminal window
evroc storage bucket create my-bucket

List buckets in the current resource group

Section titled “List buckets in the current resource group”
Terminal window
evroc storage bucket list
Terminal window
evroc storage bucket get my-bucket
Terminal window
evroc storage bucket list my-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.

Terminal window
evroc storage bucket delete my-bucket

Copying objects to/from a bucket in an interactive session

Section titled “Copying objects to/from a bucket in an interactive session”
Terminal window
# 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