A CF cli plugin to view and modify metadata
- git clone the repo to your desktop
- In the repo, run
go build
to compile a binary - run
cf install-plugin <path-to-binary>
Resolved in CLI v6.43.0.
The CF cli has a bug that causes the user token to periodically expire. This will manifest as not found errors for
resources that exist. To resolve run a normal cli command and then rerun the command from this plugin.
- Organizations
- Spaces
- Apps
cf metadata app my-app
cf metadata space my-space
cf metadata organization my-org
cf labels app my-app
cf labels space my-space
cf labels organization my-org
cf annotations app my-app
cf annotations space my-space
cf annotations organization my-org
- Add
environment
label, modifystable
label, removebeta
label
cf labels app my-app environment=production stable=true beta-
same as labels
The CC API docs describe valid selectors.
cf select apps 'production=true'
cf select orgs 'production=true,cost_center=123'
cf select spaces 'production=true,cost_center=123'