Guide

Wrap a CLI command

Run an existing CLI command as a supervised recurring job using ctx.exec, without rewriting its logic.

Use this when

  • The unit of work is an external binary or npm CLI you invoke with arguments.

Verification

  • servix logs <name> shows the command output on each run

Download Markdown