To perform a failover or failback for 2-node clustered replication groups use the following single command. For failover, run the command on the recovery server, For failback, run the command on the production server.
cli.sh [<general options>] moveApplication [<command options>] <ApplicationName>