feat(storage): add storage zone and file commands with S3 credentials#98
feat(storage): add storage zone and file commands with S3 credentials#98jamie-at-bunny wants to merge 3 commits into
Conversation
🦋 Changeset detectedLatest commit: 6cc1ccb The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
| bunny storage zone remove my-zone | ||
|
|
||
| # List the available storage regions | ||
| bunny storage zone regions |
There was a problem hiding this comment.
any reason regions is under zone? a root sub-command under storage feels cleaner
| bunny storage zone regions | ||
|
|
||
| # S3-compatible credentials (for zones with S3 preview access) | ||
| bunny storage zone credentials my-zone # show endpoint + access key + secret |
There was a problem hiding this comment.
is it safe to dump the credentials without any additional argument?
| # S3-compatible credentials (for zones with S3 preview access) | ||
| bunny storage zone credentials my-zone # show endpoint + access key + secret | ||
| bunny storage zone credentials my-zone --read-only # use the read-only password as the secret | ||
| bunny storage zone credentials my-zone --format rclone >> ~/.config/rclone/rclone.conf |
There was a problem hiding this comment.
really love this. would be awesome to get other tools like s3cmd here too. we can do it later.
|
|
||
| # Files: list, upload, download, delete (paths are relative to the zone root) | ||
| bunny storage file list my-zone | ||
| bunny storage file list my-zone images/ |
There was a problem hiding this comment.
when dir doesn't exist it says Directory is empty. maybe a more accurate error message would be nicer. the current one implies the dir exists but empty.
| bunny storage file list my-zone images/ | ||
| bunny storage file upload my-zone ./photo.png --to images/ | ||
| bunny storage file upload my-zone ./photo.png --checksum --content-type image/png | ||
| bunny storage file download my-zone images/photo.png --out ./local.png |
There was a problem hiding this comment.
this doesn't work for me. it gets stuck on downloading and blocks the process.
No description provided.