CFConfig Documentation
  • Introduction
  • The Basics
    • About This Book
    • Authors
    • Overview
    • Getting Started Guide
    • Supported Engines
    • Config Items
  • Using the CLI
    • Installation
    • Usage
    • CommandBox Server Interceptors
      • Server Start
      • Server Stop
    • 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
On this page
  • List all CF Mappings
  • Edit an existing or create a new CF Mapping
  • Delete a CF Mapping

Was this helpful?

Edit on GitHub
Export as PDF
  1. Using the CLI
  2. Command Overview

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
PreviousManage DatasourcesNextManage Caches

Last updated 4 years ago

Was this helpful?