s3 cliCommand line utility frontend to node-s3-client. Inspired by s3cmd and attempts to be a drop-in replacement.
FeaturesCompatible with s3cmd's config file Supports a subset of s3cmd's commands and parameters
When syncing directories, instead of uploading one file at a time, it
- including `put`, `get`, `del`, `ls`, `sync`, `cp`, `mv`
Uses multipart uploads for large files and uploads each part in parallel. Retries on failure.
uploads many files in parallel resulting in more bandwidth.
sudo npm install -g s3-cli
Configurations3-cli is compatible with s3cmd's config file, so if you already have that configured, you're all set. Otherwise you can put this in
[default] access_key = foo secret_key = bar
You can also point it to another config file with e.g.
$ s3-cli --config /path/to/s3cmd.conf.
putUploads a file to S3.
s3-cli put /path/to/file s3://bucket/key/on/s3
-P- Store objects with ACL allowing read for anyone.
--default-mime-type- Default MIME-type for stored objects. Application
default is `binary/octet-stream`.
--no-guess-mime-type- Don't guess MIME-type and use the default type
--add-header=NAME:VALUE- Add a given HTTP header to the upload request. Can be
used multiple times. For instance set 'Expires' or 'Cache-Control' headers (or both) using this options if you like.
getDownloads a file from S3.
s3-cli get s3://bucket/key/on/s3 /path/to/file
delDeletes an object or a directory on S3.
s3-cli del [--recursive] s3://bucket/key/on/s3/
lsLists S3 objects.
s3-cli ls [--recursive] s3://mybucketname/this/is/the/key/
Sync a local directory to S3Example:
s3-cli sync [--delete-removed] /path/to/folder/ s3://bucket/key/on/s3/
Supports the same options as
Sync a directory on S3 to diskExample:
s3-cli sync [--delete-removed] s3://bucket/key/on/s3/ /path/to/folder/
cpCopy an object which is already on S3.
s3-cli cp s3://sourcebucket/source/key s3://destbucket/dest/key
mvMove an object which is already on S3.
s3-cli mv s3://sourcebucket/source/key s3://destbucket/dest/key