Getting Started Guide
To use CFConfig, you can install it into CommandBox easily like so.
1
CommandBox> install commandbox-cfconfig
Copied!
Now that you've got the tool installed you can dig into the command help to see where to go from there. Here's a quick overview of some of the commands. Run the built-in command help for more info on each one.
These commands will work on any CF engine and if you run them from the root of CommandBox server they will "just work" as it will "find" the server for you. To run these commands against another type of server, you'd need to specify a folder path for the "from" or "to" parameters that pointed to the server home directories.

View a setting

1
CommandBox> cfconfig show requestTimeout
Copied!

Set a setting

1
CommandBox> cfconfig set requestTimeout=0,0,10,0
Copied!

View all settings for a server

1
CommandBox> cfconfig show
Copied!

Add, list, and delete a CF Mapping

1
CommandBox> cfconfig cfmapping save virtual=/foo physical=C:/bar
2
CommandBox> cfconfig cfmapping list
3
CommandBox> cfconfig cfmapping delete /foo
Copied!

Add, list and delete a datasource

1
CommandBox> cfconfig datasource save name=myDSN dbdriver=mysql host=localhost port=3306 database=myDB username=brad password=foobar
2
CommandBox> cfconfig datasource list
3
CommandBox> cfconfig datasource delete myDSN
Copied!

Export all settings from a server

1
CommandBox> cfconfig export .CFConfig.json
Copied!

Import settings into a server

1
CommandBox> cfconfig import .CFConfig.json
Copied!

Transfer settings from one server to another

1
CommandBox> cfconfig transfer from=oneServer to=anotherServer
Copied!

Diff all the settings between two servers

1
CommandBox> cfconfig diff from=oneServer to=anotherServer
2
CommandBox> cfconfig diff to=anotherServerName
3
CommandBox> cfconfig diff to=anotherServerName --fromOnly
4
CommandBox> cfconfig diff to=anotherServerName --toOnly
5
CommandBox> cfconfig diff to=anotherServerName --valuesDiffer
Copied!
Last modified 1yr ago