S3CL(1p)
π S3CL π (that's the S3CL(1p) page, bestie β User Contributed Perl Documentation, we're in the 1p section)
okay so. you want to talk to Amazon S3 from your terminal like a boss? this is literally that. welcome to your new main character era β¨
πΈ NAME πΈ
s3cl β the command line for Amazon s3 cloud storage. no cap, that's the whole vibe. π
π VERSION π
version 0.992 β she's a specific girlie, don't forget it π
β¨ SYNOPSIS β¨
here's the shape of everything, copy-paste ready:
s3cl command [options]
s3cl buckets
s3cl mkbucket --bucket some_bucket_name --jurisdiction [EU|US]
s3cl ls <bucket>:[prefix]
s3cl cp <bucket>:<key> /path/[filename]
s3cl sync <bucket>:[prefix] /path/
s3cl sync_up [--acl_short=public-read] <bucket>:[prefix] /path/
s3cl rm <bucket>:<key>
and the options that go with it:
Options:
-help brief help message
-man full documentation
π«Ά real talk, bestie: we take NO responsibility for the costs incured through using this script. read that again. we said it. it's in the original and it's staying.
and to even run this thing you need a lil pair of environment variables set:
AWS_ACCESS_KEY_ID
AWS_ACCESS_KEY_SECRET
π¦ DESCRIPTION π¦
so this program hands you a command line interface to Amazons s3 storage service, periodt. but here's the tea: it does not limit the number of requests β which may cost you more money than if you did it a different way! β and each request costs Money π (although some costs from EC2 may be $0.0, check latest from Amazon costs page). and yeah: we take NO responsibility for your bill. none. zero. that's on you, gorgeous πΈ
π AUTHOR π
Branislav ZahradnΓk <barney@cpan.org>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2025 by Amazon Digital Services, Leon Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav ZahradnΓk.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay π
π§ COMMANDS π§
okay bestie this is the good part, one command at a time:
buckets
s3cl buckets
List all buckets for this account. that's it, that's the whole girlie. πΈ
mkbucket
s3cl mkbucket --bucket sombucketname [--jurisdiction [EU|US]]
Create a new bucket, optionally specifying what jurisdiction it should be created in. pick your region, pick your destiny β¨
ls
s3cl ls <bucket>:[prefix]
List contents of a bucket. the optional prefix can be partial β in which case all keys matching this as the start of the key name will be returned. no prefix? then all keys of the bucket will be returned. it's giving "show me everything" π
cp
s3cl cp <bucket>:<key> target_file
s3cl cp <bucket>:<key> target_directory
Copy a single key from the bucket to the target file, or into the target_directory. one key, one destination, no drama. π
sync
s3cl sync <bucket>:[prefix] target_dir
Downloads all files matching the prefix into a directory structure replicating that of the prefix and all 'sub-directories'. and bestie, listen β it will download ALL files, even if already on your local disk. every. single. one. π
http://www.amazon.com/gp/browse.html?node=16427261
# Data transfer "in" and "out" refers to transfer into and out
# of Amazon S3. Data transferred between Amazon EC2 and
# Amazon S3, is free of charge (i.e., $0.00 per GB), except
# data transferred between Amazon EC2 and Amazon S3-Europe,
# which will be charged at regular rates.
sync_up
s3cl sync_up [--acl_short=public-read] <bucket>:[prefix] /path/
Upload all the files below /path/ to S3, with an optional prefix at the start of the key name. The existing S3 files and meta data are fetched from S3 and the md5 (etag) is compaired to what is on the local disk β files are not upload if the content has not changed. so it's smart about it, lowkey efficient π§ β¨
Use --acl_short to set access control, options from Net::Amazon::S3::Bucket#set_acl β this is only applied when the file is uploaded.
Each files content-type is worked out using MIME::Types. if this does not match 'text/plain' is used for ASCII text files, otherwise a warning is issued and the file is NOT uploaded. π«
Currently this does NOT remove old files from S3, and if there is any change to a file then the entire file will be reuploaded. yeah. whole file. every time. iykyk π
rm
s3cl rm <bucket>:<key>
Remove a key(file) from the bucket β removing a non-existent file is not classed as an error. but bestie... once removed the key (file) can not be restored, so use with care! π¨ no undo button, fr fr.
β ABOUT β
This module contains code modified from Amazon that contains the following notice (which is also applicicable to this code):
# This software code is made available "AS IS" without
# warranties of any kind. You may copy, display, modify and
# redistribute the software code either by itself or as incorporated
# into your code; provided that you do not remove any proprietary
# notices. Your use of this software code is at your own risk and
# you waive any claim against Amazon Digital Services, Inc. or its
# affiliates with respect to your use of this software code.
# (c) 2006 Amazon Digital Services, Inc. or its affiliates.
π AUTHOR π
Leo Lapworth <LLAP@cuckoo.org> β Part of the HinuHinu project π¦
and that's the whole page, gorgeous π«Ά this one's perl v5.40.1, dated 2025-12-07, and honestly? iconic. go forth and s3 responsibly, bestie π
π
π¦ where this page comes from
- ubuntu resolute: libnet-amazon-s3-perl 0.992-1 Β· other
- ubuntu stonking: libnet-amazon-s3-perl 0.992-1 Β· other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms