1.0.3 • Published 5 years ago

oss-reader v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

OSS-Reader

NPM version

OSS-Reader is a CLI tool for reading contents from OSS bucket.

Installation

Use npm or yarn to install OSS-Reader.

npm install -g oss-reader
# or
yarn global add oss-reader

Usage

For now, you could just list objects in buckets.

oss-reader ls <bucketname> -k <OSS secret ID>

The full options as this:

Usage: list|ls [options] <bucket>

Retrive the full `Objects` list from <bucket>. Arguments has the some meaning to https://help.aliyun.com/document_detail/31965.html .

Options:
  -k, --id <id>            The Access Key ID created by Aliyun.
  -s, --secret <string>    The Access Key Secret created by Aliyun.
  -r, --region <string>    Optional. The region of bucket, default to "oss-cn-hangzhou".
  -p, --prefix <string>    Optional. The prefix path of `Objects`, we would just fetch thing behind this path if provided.
  -m, --marker <marker>    Optional. Start point for fetching.
  -o, --outfile <outfile>  Optional. We would save the `Objects` list if provided.
  -h, --help               Output usage information

TODO

  • Implement "sample" feature to fetch partial object list from OSS.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT