Skip to content

feat(storage): add storage zone and file commands with S3 credentials#98

Draft
jamie-at-bunny wants to merge 3 commits into
mainfrom
storage-commands
Draft

feat(storage): add storage zone and file commands with S3 credentials#98
jamie-at-bunny wants to merge 3 commits into
mainfrom
storage-commands

Conversation

@jamie-at-bunny

Copy link
Copy Markdown
Member

No description provided.

@changeset-bot

changeset-bot Bot commented Jun 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6cc1ccb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@bunny.net/cli Minor
@bunny.net/cli-linux-x64 Minor
@bunny.net/cli-linux-arm64 Minor
@bunny.net/cli-darwin-x64 Minor
@bunny.net/cli-darwin-arm64 Minor
@bunny.net/cli-windows-x64 Minor

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

Comment thread packages/cli/README.md
bunny storage zone remove my-zone

# List the available storage regions
bunny storage zone regions

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason regions is under zone? a root sub-command under storage feels cleaner

Comment thread packages/cli/README.md
bunny storage zone regions

# S3-compatible credentials (for zones with S3 preview access)
bunny storage zone credentials my-zone # show endpoint + access key + secret

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it safe to dump the credentials without any additional argument?

Comment thread packages/cli/README.md
# 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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really love this. would be awesome to get other tools like s3cmd here too. we can do it later.

Comment thread packages/cli/README.md

# 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/

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread packages/cli/README.md
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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't work for me. it gets stuck on downloading and blocks the process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants