OSS-Reader is a CLI
tool for reading contents from OSS bucket.
Use npm
or yarn
to install OSS-Reader.
npm install -g oss-reader
# or
yarn global add oss-reader
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
- Implement "sample" feature to fetch partial object list from OSS.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.