Something like: cf login, cf set-org-users, cf orgs, cf spaces:
Here is a reference:
https://docs.cloudfoundry.org/cf-cli/getting-started.html