psadmin get-rewriter-ruleset --adminuser uid --passwordfile password-filename --rule ruleset-ID --output ruleset.xml
In the above example, the command stores the fetched ruleset output in a file.