Added test automation for CLI and added cli for migrations