There are three commands to manage CF mappings.
cfconfig cfmapping listcfconfig cfmapping list from=serverNamecfconfig cfmapping list from=/path/to/server/home
To receive the data back as JSON, use the
cfconfig cfmapping list --JSON
Add a new CF mapping or update an existing CF Mapping. Existing mappings will be matched based on the virtual path.
cfconfig cfmapping save /foo C:/foo/barcfconfig cfmapping save virtual=/foo physical=C:/foo/bar to=serverNamecfconfig cfmapping save virtual=/foo physical=C:/foo/bar to=/path/to/server/home
Identify the mapping uniquely by the virtual path.
cfconfig cfmapping delete /foocfconfig cfmapping delete /foo serverNamecfconfig cfmapping delete /foo /path/to/server/home