CLI

ls

storage ls [prefix] [--limit n] [--cursor token]

List objects under an optional prefix. Human mode prints one path per line so the output pipes cleanly into xargs, grep, and friends; JSON mode emits the full ListResult ({ items, cursor? }).

storage ls
storage ls photos/
storage ls photos/ --limit 100

Flags

Pagination

--limit and --cursor together let you walk a large bucket. In human mode the cursor prints to stderr so the paths on stdout stay clean to pipe:

cursor=$(storage ls --limit 1000 2> >(grep -oE 'cursor: .*' | cut -d' ' -f2))
storage ls --limit 1000 --cursor "$cursor"