Browse docs

SDKs superflows run (any language)

superflows run (any language)

For C++, Java, Go, Rust or anything else: superflows run supervises the process and reports for it. No code change.

Use

bash
1superflows run --service matching-engine --lang cpp -- ./build/matching_engine --port 9000

Flags

FlagMeaning
--serviceService name (default: SUPERFLOWS_SERVICE, else the folder name).
--envEnvironment (default: SUPERFLOWS_ENV, else production).
--langcpp, go, java, rust, ruby, php, dotnet, node, python or other.
--health URLYour process’s own health URL, polled each heartbeat: a deadlocked process shows DEGRADED, not UP.
--routes FILEEndpoints to list, one METHOD /path per line.
--releaseRelease version (default: SUPERFLOWS_RELEASE).

Exit and signals

Signals pass through to your process and output passes through unchanged; superflows run exits with your process’s exit code, so systemd, PM2 and Docker see no difference. An exit after SIGTERM or Ctrl-C is a clean stop; any other exit is a crash, reported with the last stderr lines.