Only run in cli mode.