Skip to content

Conversation

@jochenehret
Copy link
Contributor

@jochenehret jochenehret commented Dec 8, 2025

Description of the Change

Enhance "service" command to display information for multiple service bindings. Example output for a service that is bound to 3 apps 2 times each:

cf service service1
(...)

Showing bound apps:
   name       binding name    status             message   guid                                   created_at
   testapp1                   create succeeded             e6805afe-b50c-4995-83e3-b4c3368538a4   2025-12-05T10:33:55Z
   testapp1                   create succeeded             32c46bb1-9925-4620-9d8b-a373b18f7801   2025-12-05T10:33:30Z
   testapp2   app2_service1   create succeeded             d15b704c-6bfd-48c8-a0bf-eb4eafdf4b3c   2025-12-08T13:21:07Z
   testapp2   app2_service1   create succeeded             778370b4-e457-4dbd-b527-7413ba12088c   2025-12-08T13:20:57Z
   testapp3   app3_service1   create succeeded             9bdb47a6-261c-402b-87f6-6f637278c647   2025-12-08T14:07:09Z
   testapp3   app3_service1   create succeeded             c1e534fc-51d4-4eac-a033-f4d0dc5c08ec   2025-12-08T13:06:57Z

Why Is This PR Valuable?

Supports management of multiple service bindings per (app, service) which is useful for rotating credentials.

Applicable Issues

https://github.com/cloudfoundry/community/blob/main/toc/rfc/rfc-0040-service-binding-rotation.md#cf-cli

How Urgent Is The Change?

Not super-urgent.

Other Relevant Parties

This change is for the next major release of CLI (v9). Same change for v8: #3660

* in the "bound apps" section, show also multiple service bindings for an app
* add binding guid and created_at timestamp to table
* sort by 1. name 2. created_at
* for v8, we'll also add the two new columns at the end of the table
@jochenehret jochenehret force-pushed the main_service_cmd_multi_bindings branch from 25b2b5d to 7d4777f Compare December 9, 2025 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant