Manage CF Mappings
There are three commands to manage CF mappings.

List all CF Mappings

1
cfconfig cfmapping list
2
cfconfig cfmapping list from=serverName
3
cfconfig cfmapping list from=/path/to/server/home
Copied!
To receive the data back as JSON, use the --JSON flag.
1
cfconfig cfmapping list --JSON
Copied!

Edit an existing or create a new CF Mapping

Add a new CF mapping or update an existing CF Mapping. Existing mappings will be matched based on the virtual path.
1
cfconfig cfmapping save /foo C:/foo/bar
2
cfconfig cfmapping save virtual=/foo physical=C:/foo/bar to=serverName
3
cfconfig cfmapping save virtual=/foo physical=C:/foo/bar to=/path/to/server/home
Copied!

Delete a CF Mapping

Identify the mapping uniquely by the virtual path.
1
cfconfig cfmapping delete /foo
2
cfconfig cfmapping delete /foo serverName
3
cfconfig cfmapping delete /foo /path/to/server/home
Copied!
Last modified 5mo ago