SDKs & CLIs
CLI

CLI

Prerequisites

Before you can use AIOZ W3S with AWS CLI, you must install the AWS CLI and configure it.

  1. Install AWS CLI (opens in a new tab)
  2. Configure AWS CLI (opens in a new tab)

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://w3s.aioz.network mb s3://my-bucket

List Buckets

aws s3 --endpoint-url https://w3s.aioz.network ls

List Objects

aws s3 --endpoint-url https://w3s.aioz.network ls s3://bucket-name

Upload Object

aws s3 --endpoint-url https://w3s.aioz.network cp /path/to/file s3://bucket-name

Get Object

aws s3 --endpoint-url https://w3s.aioz.network cp s3://bucket-name/file /path/to/file

Delete Object

aws s3 --endpoint-url https://w3s.aioz.network rm s3://bucket-name/file

Delete Multiple Objects

This command will delete all objects in the bucket bucket-name.

aws s3 --endpoint-url https://w3s.aioz.network rm s3://bucket-name/ --recursive

Delete Bucket

aws s3 --endpoint-url https://w3s.aioz.network rb s3://bucket-name

Copy Object

aws s3 --endpoint-url https://w3s.aioz.network cp s3://bucket-name/file s3://bucket-name/file