Set/View Settings
View all configuration
View a specific configuration setting
Set a configuration setting
Note, this command requires named parameters.
You can actually use CFConfig set to manage the static contents of a JSON export. The JSON file is, after all, just another location you can read from or write to.
Using "deep" property names
The cfconfig set
and cfconfig show
commands work the same as package set/show
in that you can use "deep" keys to access nested properties.
Keep in mind that examples such as the last line above can create invalid config if you don't already have a datasource called myDSN
. If you're needing to create new complex objects, or you're not sure if they will exist, use the other CFConfig namespaces like cfconfig datasource save
which will ensure complete settings are saved.
Last updated