re-group commands in cli