GithubHelp home page GithubHelp logo

s3-cli's Introduction

Simple S3 Command line client

Usage

Requires authentication if necessary by setting up a AWS_ACCESS_KEY_ID environment variable, and an AWS_SECRET_ACCESS_KEY environment variable.

Upload

s3 upload ./myfile.png eu-west-2/my-bucket

Download

s3 download eu-west-2/my-bucket/myfile.png ./

Extra

Each command follows a convention: s3 <command> <source> <destination>. Where either the source or destination is a resource resident on S3, it uses a file like scheme to define the resource:

<region>/<bucket>/<key>

In the case of uploading, the key is optional. If the key is missing, then the key will be the name of the file to upload.

Examples
s3 upload ./myfile.png eu-west-2/my-bucket

Will add the file myfile.png to my-bucket and the key will be named myfile.png.

s3 upload ./myfile.png eu-west-2/my-bucket/newfile.png

Will add the file myfile.png to my-bucket, but the key will be named newfile.png.

Library

This can be used programatically and the library exports the following methods:

downloadFile(region, { accessKeyId, secretAccessKey }, bucket, key, writeStream)

uploadFile(region, { accessKeyId, secretAccessKey }, bucket, key, inputStream)

License

MIT

s3-cli's People

Contributors

samgiles avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

martina6hall

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.