You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow commands to resolve resources by binding name #38
A closely related case, from deleting 40 test resources with cf 1.0.0-beta.5: most commands also take only IDs where the resource has a unique name the user knows. Every wrapper then starts with a list-and-filter step (and has to pass --per-page 100, see #20):
To act on
You have
You need
Lookup today
D1 database
its name
UUID
cf d1 list --name <n> --per-page 100 → .uuid
KV namespace
its title
id
cf kv namespaces list --per-page 100 → .title match
Activity
joeblew999 commentedon Sep 30, 2026
A closely related case, from deleting 40 test resources with cf 1.0.0-beta.5: most commands also take only IDs where the resource has a unique name the user knows. Every wrapper then starts with a list-and-filter step (and has to pass
--per-page 100, see #20):cf d1 list --name <n> --per-page 100→.uuidcf kv namespaces list --per-page 100→.titlematchworkers delete)cf workers list --per-page 100→.namematchcf queues list→.queue_namematchAccepting a unique resource name wherever an ID is accepted (with the same "ambiguous or missing" errors as the binding-name proposal) would remove that step. Details: https://github.com/joeblew999/cf-cli-test (scripts/cleanup.mjs shows the lookups).
lnv-louis commentedon Oct 3, 2026
I second this.