Add wrangler r2 object list command
#13168
alexminza
started this conversation in
Feature Requests
Replies: 1 comment
-
|
Definitely need this command. I wonder if we should respect directories, or have some sort of pagination though? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the solution
Summary
wrangler r2 objectcurrently supportsget,put, anddeletebut has nolistsubcommand. There is no way to list objects in an R2 bucket using the wrangler CLI.Use case
Emptying an R2 bucket before deletion.
wrangler r2 bucket deletefails on non-empty buckets, but there's no wrangler command to discover what's in the bucket. This forces users to fall back to the CF REST API or external tools (AWS CLI, rclone) just to list objects.Current workaround
This requires mixing CF API calls with wrangler commands and manually handling pagination cursors.
Proposed solution
Environment
Beta Was this translation helpful? Give feedback.
All reactions