CLI
Prerequisites
Before you can use AIOZ Storage with AWS CLI, you must install the AWS CLI and configure it.
After you have installed and configured AWS CLI, the following sections show you how to use it. For completed examples, see the AWS CLI S3 examples (opens in a new tab).
Create A Bucket
aws s3 --endpoint-url https://s3.aiozstorage.network mb s3://my-bucketList Buckets
aws s3 --endpoint-url https://s3.aiozstorage.network lsList Objects
aws s3 --endpoint-url https://s3.aiozstorage.network ls s3://bucket-nameUpload Object
aws s3 --endpoint-url https://s3.aiozstorage.network cp /path/to/file s3://bucket-nameGet Object
aws s3 --endpoint-url https://s3.aiozstorage.network cp s3://bucket-name/file /path/to/fileDelete Object
aws s3 --endpoint-url https://s3.aiozstorage.network rm s3://bucket-name/fileDelete Multiple Objects
This command will delete all objects in the bucket bucket-name.
aws s3 --endpoint-url https://s3.aiozstorage.network rm s3://bucket-name/ --recursiveDelete Bucket
aws s3 --endpoint-url https://s3.aiozstorage.network rb s3://bucket-nameCopy Object
aws s3 --endpoint-url https://s3.aiozstorage.network cp s3://bucket-name/file s3://bucket-name/file