Skip to content

lynxpm reload

Terminal window
lynxpm reload [--namespace <ns>] [--json] <id|name|ns:*|*>...

Reload a process configuration from its stored spec and restart it. Useful after editing a spec file or changing environment.

Bulk selectors:

  • <ns>:* — every process in that namespace. Quote the glob so the shell does not expand it: lynxpm reload 'prod:*'.
  • * or *:* — every managed process.
  • --namespace <ns> — same as <ns>:* but no shell quoting needed. Cannot be combined with positional targets.
FlagTypeDefaultDescription
--namespace <ns>string-Reload every process in this namespace. Mutually exclusive with positional targets.
--jsonbooleanfalseEmit a machine-readable {results, summary} batch report on stdout.
-h, --help--Show help message.

Reload by name:

Terminal window
lynxpm reload my-api

Reload multiple:

Terminal window
lynxpm reload api-1 api-2

Reload every process in the prod namespace:

Terminal window
lynxpm reload 'prod:*' # selector form (quote the glob)
lynxpm reload --namespace prod # flag form (script-friendly)

Reload and inspect the summary:

Terminal window
lynxpm reload api worker --json | jq '.summary'
  • 0 — every target was reloaded.
  • non-zero — at least one target failed; the per-target line (or .results[].error in --json) explains why.