The rhc command-line tools come with the global option -l, --rhlogin LOGIN. You have two options:
-
Use the
-lflag with every command to specify the login name:rhc app create <appname> <cartridge> [-l <login1/login2>] -
Run
rhc setup -l LOGINbetween the sessions. Once done managing apps from one account you can end the session for it by runningrhc account logout.rhc setup -l <login1> # First account's login rhc app create <appname> <cartridge> rhc logout rhc setup -l <login2> # Second account's login rhc app create <appname> <cartridge> rhc logout
When you can rhc setup command, the username information gets stored in .openshift/express.conf file; hence the need to run it again when you want to switch the account.