psadmin list-rewriter-rulesets --adminuser user-id --passwordfile password-filename --output rulesets.txt
In the above example, the command stores all the listed rulesets to a file.