Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tangledbytes/s3cli
A stupid dumb and simple S3 API CLI
https://github.com/tangledbytes/s3cli
Last synced: 3 months ago
JSON representation
A stupid dumb and simple S3 API CLI
- Host: GitHub
- URL: https://github.com/tangledbytes/s3cli
- Owner: tangledbytes
- License: apache-2.0
- Created: 2022-09-09T11:07:27.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-05T12:42:13.000Z (4 months ago)
- Last Synced: 2024-10-11T11:17:37.380Z (3 months ago)
- Language: Go
- Size: 105 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# S3CLI
Stupid simple S3 API CLI. All it let's you do is run ***any*** S3 API. You can pass files as well as input which are resolved automatically.## Install
```
brew tap utkarsh-pro/utkarsh-pro
brew install s3cli
```## Why?
Wanted to run `put-bucket-policy` on NooBaa endpoint and `aws s3api` just won't do it. Lookedup other alternatives and none of them satisfied the needs, so here it is.## How?
```
$ s3cli api --help
Run any S3 APIUsage:
s3cli api [flags]Examples:
# Basic usage
$ s3cli api --help
Run any S3 APIUsage:
s3cli api [flags]Examples:
# Basic usage
s3cli api --endpoint http://localhost:9000 --access-key noobaa --secret-key noobaa123 --params '{"Bucket": "test"}' ListObjects# File Params example - --file-params are merged with --params after file data expanstion
s3cli api --endpoint http://localhost:9000 --access-key noobaa --secret-key noobaa123 --params '{"Bucket": "test"}' --file-params '{ "Policy": "./policy.json" }' PutBucketPolicy# Anonymous usage
s3cli api --endpoint http://localhost:9000 --anon --params '{"Bucket": "test"}' ListObjectsFlags:
--access-key string S3 access key
--anon S3 anonymous
--debug S3 debug
--endpoint string S3 endpoint
--file-params string S3 api file params as JSON - gets merged with params after file resolution (default "{}")
-h, --help help for api
-o, --output string Output format, one of: [go color json] (default "json")
--params string S3 api params as JSON (default "{}")
--region string S3 region (default "us-east-1")
--secret-key string S3 secret key
--skip-ssl S3 skip ssl
```