aws --endpoint https://s3.filebase.comThe portion that follows this initial command will be the part that determines what action is to be performed and with what bucket.
s3 mb s3://[bucket-name]command. For example, to create a new bucket called 'filebase-bucket':
s3 lscommand. This following command will list all buckets in your Filebase account:
s3 ls s3://[bucket-name]. For example, to list the contents of 'filebase-bucket':
s3 cp [filename] s3://[bucket-name]command. For example, to upload a file called '1200.jpeg':
s3 lscommand previously used:
s3 sync [folder name] s3://[bucket-name]command. For example, to upload the contents of a folder called 'test_folder', use the command:
s3api head-objectcommand to fetch object metadata about each file uploaded to a bucket. Included in this metadata is what is called an 'entity tag', also known as an ETag. In Filebase, for files that were not uploaded in a multipart upload, the ETag is the same as an object’s MD5 checksum value, which is a common practice among S3-compatible object storage services.
get-filehash -Algorithm MD5 1201.jpg
s3 rm s3://[bucket_name]/[file_name]command. For example, to delete the file '1200.jpeg' from the bucket 'filebase-bucket':
aws --endpoint <https://s3.filebase.com> s3 rm --recursive s3://[bucket_name]/command. For example, to delete all files from the bucket 'filebase-bucket':
--expires-infollowed by the number of minutes.