Hello wijew,
It depends a bit on which version of the CA API Gateway you are running, but the short answer is "Yes, we have a method available to migrate policies via the command line".
In version 8.3.00 (our latest version at the time of this writing), we built in a new feature we call the "GMU" or "Gateway Migration Utility" which allows migration of policies using the command line. For several versions prior to 8.3.00, we have a Tactical Project which can be used and is called the "CMT" or "Command-line Migration Tool" which is more or less similar to the "GMU" of 8.3.00, just requiring an additional installation rather than being included in the version itself.
For more information on the GMU in version 8.3.00, please consult the CA Wiki page for it: https://wiki.ca.com/display/GATEWAY83/Configure+GMU+and+Gateways+for+Migration
If you require a copy of the CMT for a version prior to 8.3.00, please open up a Support case so we can deliver it to you via the Support case. Be sure to include which exact version of the CA API Gateway you are running (command to run to confirm: # rpm -qa | grep ssg).
I hope the above helps.
Sincerely,
Dustin Dauncey
Support Engineer, Global Customer Success
Email: API-Support@ca.com
Phone: +1 800 225 5224
Outside of North America - ca.com/us/worldwide.aspx