CFConfig Documentation
Search…
Introduction
The Basics
About This Book
Authors
Overview
Getting Started Guide
Supported Engines
Config Items
Using the CLI
Installation
Usage
CommandBox Server Interceptors
Command Overview
Export Settings
Import Settings
Transfer Settings
Diff Settings
Set/View Settings
Manage Datasources
Manage CF Mappings
Manage Caches
Manage Mail Servers
Manage Event Gateway Configuration
Manage Event Gateway Instances
Manage Lucee Loggers
Manage Scheduled Tasks
JSON File Storage
Env Var Overrides
Using the Services
Installation
Component Overview
API Overview
Powered By
GitBook
Manage CF Mappings
There are three commands to manage CF mappings.
List all CF Mappings
cfconfig cfmapping list
cfconfig cfmapping list
from
=
serverName
cfconfig cfmapping list
from
=
/path/to/server/home
To receive the data back as JSON, use the
--JSON
flag.
cfconfig cfmapping list --JSON
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.
cfconfig cfmapping save /foo C:/foo/bar
cfconfig cfmapping save virtual=/foo physical=C:/foo/bar to=serverName
cfconfig cfmapping save virtual=/foo physical=C:/foo/bar to=/path/to/server/home
Delete a CF Mapping
Identify the mapping uniquely by the virtual path.
cfconfig cfmapping delete /foo
cfconfig cfmapping delete /foo serverName
cfconfig cfmapping delete /foo /path/to/server/home
Previous
Manage Datasources
Next
Manage Caches
Last modified
1yr ago
Copy link
Edit on GitHub
Outline
List all CF Mappings
Edit an existing or create a new CF Mapping
Delete a CF Mapping