Open
Description
Summary of the issue
Most list commands print a bare JSON array, but a few print the API's wrapper object, so you can't reuse one jq filter across products:
| Command | stdout |
|---|---|
cf kv namespaces list, cf d1 list, cf zones list, cf workers list, cf queues list, cf workflows list, cf vectorize list, cf hyperdrive list, cf ai-gateway gateways list, cf secrets-store stores list, cf accounts list, cf tunnels list, … |
[ … ] |
cf r2 buckets list |
{ "buckets": [ … ] } |
cf images list |
{ "continuation_token": …, "images": [ … ] } |
For example, cf <product> list | jq '.[].name' works for KV, D1, Queues, etc., but fails for R2 (Cannot index object with number).
Expected behaviour
List commands print a consistent shape. Either always a bare array, with pagination cursors handled by the CLI or reported on stderr, or always the same documented wrapper.
Version of cf used
1.0.0-beta.16
System information and package versions
cf 1.0.0-beta.16 (also checked in the beta.18 package source)
macOS 27.0 arm64, Node 26.8.2, npm 11.19.1
Reproduction (optional)
cf kv namespaces list | jq 'type' # "array"
cf r2 buckets list | jq 'type' # "object"
cf images list | jq 'type' # "object"Relevant error logs (optional)
Related: #105 (other output inconsistencies for scripts and agents), #20 (list pagination).
Metadata
Metadata
Assignees
Labels
No labels
Activity