Exports your Admin Tools configuration to a JSON file. You can choose to export all sections or only specific ones.
wp admintools export [--file=<file>] [--sections=<sections>]
--file=<file>Path to the output JSON file. If omitted, the JSON is printed to standard output.
--sections=<sections>Comma-separated list of sections to export. Default: all. Available sections: wafconfig, wafexceptions, ipblacklist, ipwhitelist, badwords, emailtemplates.
Export all settings to a file:
wp admintools export --file=admintools_settings.json
Export only the WAF configuration and bad words:
wp admintools export --sections=wafconfig,badwords --file=partial.json
Print the exported JSON to standard output:
wp admintools export --sections=wafconfig
Success: Configuration exported to admintools_settings.json