Skip to main content

Commands

Quick reference

$ sysg start                     # Launch services
$ sysg stop                      # Stop the current project
$ sysg restart                   # Restart services
$ sysg status                    # Check supervisor health
$ sysg logs                      # View output
$ sysg inspect -s api             # View metrics
$ sysg start --parent-pid 123 --name w1 -- cmd   # Create child
$ sysg purge                     # Clear all state
:::warning Deprecated sysg spawn is deprecated. Use sysg start --parent-pid ... for child-process workflows. ::: All commands accept --log-level (debug, info, warn, error).

Supervisor status

sysg status talks to the running supervisor and shows all registered projects. Use filters to narrow the view:
$ sysg start --config app.yaml
$ sysg status                 # Shows all supervisor-known projects
$ sysg status --config app.yaml
$ sysg status --project app

Daemon mode

Run supervisor in background:
$ sysg start --daemonize
$ sysg status                 # Communicates with daemon
$ sysg stop                   # Stops the current project
$ sysg stop --supervisor      # Stops all projects and exits the supervisor

Service-specific operations

Most commands accept a service name:
$ sysg restart --service api
$ sysg logs --service worker
$ sysg stop --service redis

See also