List spaces using the cf CLI

Once you have successfully created your Space under the Org, you can now list all of the spaces that belong to the Org.

This is done by executing the command cf spaces:

Figure 18: List all the spaces under the cf-my-first-org using the cf CLI
You need to ensure you have set the cf target -o ORG before you run the command listed previously.

Get Cloud Foundry for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.