[PATCH] Add realm command support