Commands: How to switch commands credentials?

Switching is not available in java (As we support only OAuth)