It has nothing to do with CLI as far as I am aware. If you have breaking enabled, it is not that hard to put any sort of break-preparing in the script
Something like --> if breaking within 2 minutes --> get to a safe place where player can't get attacked, then wait for breaking to turn active