AWS CLI

The AWS Command Line Interface (CLI) is a unified tool to manage AWS services.

The AWS CLI can also be used to work with other S3-compatible object storage systems, including Tebi.

Installation

You can download the latest version of aws CLI from the official site download page.

Configuring AWS CLI

For general use, the aws configure command is the fastest way to set up your AWS CLI installation.

Configuration Process Example:

1$ aws configure --profile tebi
2AWS Access Key ID [None]:  YOUR_KEY
3AWS Secret Access Key [None]: YOUR_SECRET
4Default region name [None]:
5Default output format [None]:

Running AWS CLI

Note

Add the --endpoint-url https://s3.tebi.io command line parameter to use the AWS CLI tool with Tebi.

See all buckets

aws --endpoint-url https://s3.tebi.io --profile tebi s3 ls

Make a new bucket

aws --endpoint-url https://s3.tebi.io --profile tebi s3 mb BUCKET_NAME

List the contents of a bucket

aws --endpoint-url https://s3.tebi.io --profile tebi s3 ls BUCKET_NAME

Sync /home/local/directory to the remote BUCKET_NAME, deleting any excess files in the bucket.

aws --endpoint-url https://s3.tebi.io --profile tebi s3 sync /home/local/directory BUCKET_NAME

See Also

Refer here for more information.