callback in cli