Diff Settings
You can diff any two locations, meaning two servers, two JSON files, a server and a JSON file, etc, etc.
1
cfconfig diff server1 server2
2
cfconfig diff file1.json file2.json
3
cfconfig diff servername file.json
4
cfconfig diff from=path/to/servers1/home to=path/to/server2/home
Copied!
You can even filter what config settings you see:
1
cfconfig diff to=serverName --all
2
cfconfig diff to=serverName --valuesDiffer --toOnly --fromOnly
Copied!

Diff Reports

The cfconfig diff commandbox has the ability to export HTML and PDF files. The contents of the report will exactly match what displays in the CLI. So any flags you apply such as --toOnly will also filter the report output. This can be handy for historical purposes or just to get the data into a format that's easier to read than the CLI.
To generate an HTML report:
1
cfconfig diff to=... from=... HTMLReportPath=folder/
2
cfconfig diff to=... from=... HTMLReportPath=folder/file.html
Copied!
To generate a PDF report:
1
cfconfig diff to=... from=... PDFReportPath=folder/
2
cfconfig diff to=... from=... PDFReportPath=folder/file.pdf
Copied!
You can generate both HTML and PDF at the same time if you like. If you don't provide a filename, one is created for you with the following format:
1
cfconfig-diff-report-YYYY-MM-DD-HHMMSS.[html|pdf]
Copied!
The report directory is also created for you if it doesn't exist.
Remember, you can get funky and generate clever report names on the fly such as:
1
cfconfig diff ... PDFreportpath="Daily-Report-`#now | #dayOfWeek | #dayOfWeekAsString`.pdf"
Copied!
This would give you a name like Daily-Report-Thursday.pdf! Existing files are overwritten.
Last modified 3yr ago
Copy link
Contents
Diff Reports