Skip to main content

CLI reference · command

bernstein stop

bernstein stop [OPTIONS]

Stop all agents and the task server. Default (soft stop): writes SHUTDOWN signal files so agents can save their work, waits up to ``--timeout`` seconds, saves session state, returns claimed tickets to open, then kills remaining processes with SIGTERM. With ``--force`` / ``--hard``: skips signal files and waiting, kills everything immediately with SIGKILL, then does best-effort session save and ticket recovery.

Flags (3)

  • --timeoutINTEGERdefault: 30

    Seconds to wait for agents (soft stop). [default: 30] · flag detail

  • --force, --hard

    Hard stop: kill immediately without waiting. · flag detail

  • --help

    Show this message and exit. · flag detail

Example

# print help
bernstein stop --help

# common usage
bernstein stop --timeout VALUE