cs_switch helps you generating SQL queries required to change the domain of CloudStack compute offerings.
- Ruby
- bundler gem
Make sure you have a working cloudstack-cli configuration file in your home directory.
Usually this is found under ~/.cloudstack-cli.yml
Install gem dependencies:
$ bundle install
Run the CLI to generate SQL update statements (example):
$ bin/cs_switch sql --source-domain Testdomain --limit 1cpu_1gb
See the help for more options:
$ bin/cs_switch help sql