## Lesson — Wrap interactive prompts within batch loops in try/catch

**Tags:** cli, error-handling, ux

Wrap interactive prompts within batch loops in try/catch blocks to prevent a prompt library failure or environment error from crashing the entire command. This ensures the CLI can skip the problematic item and continue processing the rest of the batch.
