Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Feature Request: wrangler r2 CLI should be useable with local R2 bucket #7888

Open
aleclarson opened this issue Jan 23, 2025 · 5 comments
Labels
enhancement New feature or request

Comments

@aleclarson
Copy link

Describe the solution

Not sure if this is already possible.

I want wrangler r2 CLI to work on local buckets too.

@aleclarson aleclarson added the enhancement New feature or request label Jan 23, 2025
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Jan 23, 2025
@penalosa
Copy link
Contributor

You should be able to pass the --local flag to make wrangler r2 talk to local buckets

@github-project-automation github-project-automation bot moved this from Untriaged to Done in workers-sdk Jan 23, 2025
@aleclarson
Copy link
Author

aleclarson commented Jan 23, 2025

Huh, I tried that to no avail. What version was it added? Is there a particular place in the command where it belongs?

Also, --local is not mentioned anywhere in the --help output.

edit: Just tried with latest wrangler version. It did not work.

@penalosa
Copy link
Contributor

What command are you running? e.g. wrangler r2 object put --help should display --local as an option

@penalosa penalosa reopened this Jan 23, 2025
@github-project-automation github-project-automation bot moved this from Done to Untriaged in workers-sdk Jan 23, 2025
@aleclarson
Copy link
Author

I was trying wrangler r2 bucket list --local

@emily-shen
Copy link
Contributor

emily-shen commented Feb 4, 2025

Ah --local only applies to r2 object commands not r2 bucket ones. You can sort of see the local buckets wrangler has created for you in the .wrangler folder.

Since local buckets are always created for you by wrangler depending on whatever is in your config file, i'm not sure its hugely useful to have bucket list accept --local, but i appreciate its a bit confusing that objects have --local but not the buckets themselves.

are there any other bucket commands that you're trying to use with --local?

@emily-shen emily-shen removed this from workers-sdk Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants