S3CL(1)
π
S3CL(1) β the s3cl girlie's guide to Amazon S3 πΈ
okay so bestie, welcome to S3CL(1), aka the s3cl command line situation. section 1 of the manual, user-contributed Perl documentation, and honestly? iconic. π
β¨ NAME β¨
s3cl β literally just a command line for Amazon s3 cloud storage. that's the whole vibe. π¦
π VERSION π
version 0.992 β yes she has a version number, respect her.
π SYNOPSIS π
the basic shape of things, no cap:
s3cl command [options]
and here's the whole lineup of commands, serving looks:
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, short but sweet:
Options:
-help brief help message
-man full documentation
π¨ real talk: We take NO responsibility for the costs incured through using this script. (yes, "incured" β we're quoting her exactly, she's perfect π ). like, your bill is your business, bestie.
to run this script you need a pair of environment variables set, periodt:
AWS_ACCESS_KEY_ID
AWS_ACCESS_KEY_SECRET
no keys, no vibes. π
π DESCRIPTION π
okay so what does this program actually do? it gives you a command line interface to Amazon's s3 storage service. that's the main character energy right there. π
but listen β 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 the latest from the Amazon costs page). and yeah β we take NO responsibility for your bill. π fr fr, your wallet, your problem.
πΈ AUTHOR πΈ
Branislav ZahradnΓk <barney@cpan.org> β thank her for her service π«Ά
β 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, open source legend. π
π₯ COMMANDS π₯
πͺ£ buckets
s3cl buckets
List all buckets for this account. that's it, that's the whole thing. bucket inventory, served fresh. β¨
π§ mkbucket
s3cl mkbucket --bucket sombucketname [--jurisdiction [EU|US]]
Create a new bucket, optionally specifying what jurisdiction it should be created in. (note: the synopsis says sombucketname, not some_bucket_name β we don't make the rules, we just respect them π)
π¦ 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. if no prefix is supplied, all keys of the bucket will be returned. iykyk β prefix = filter, no prefix = the whole fit. π
π 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'. it will download ALL files β even if already on your local disk:
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.
so like, free-ish, except when it's not. check the fine print, bestie. πΈ
π§΅ 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. (yes, "compaired" and "not upload" β we quote the queen verbatim π)
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 file's 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. no content-type, no entry. π
β οΈ 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. annoying? yes. facts? also yes.
π rm
s3cl rm <bucket>:<key>
Remove a key (file) from the bucket. removing a non-existent file is not classed as an error. but once removed the key (file) can not be restored β so use with care! π¨ like genuinely, be careful, there's no undo here.
π ABOUT π
This module contains code modified from Amazon that contains the following notice (which is also applicicable to this code) β spelling again preserved, we love her:
# 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 (again, she gets two sections) π¦
Leo Lapworth <LLAP@cuckoo.org> β Part of the HinuHinu project. π
okay that's the whole page bestie!! and for the cute little sign-off at the bottom, the original footer was serving: perl v5.32.1, dated 2025-11-24, tagged S3CL(1). so there you go β go forth, sync responsibly, and don't blame us for your AWS bill π
β¨π
π¦ where this page comes from
- epel 9: perl-Net-Amazon-S3 0.992-1.el9 Β· (GPL-1.0-or-later OR Artistic-1.0-Perl) AND ADSL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms