> ## Documentation Index
> Fetch the complete documentation index at: https://sysg.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Commands

# Commands

## Quick reference

```sh theme={null}
$ 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:

```sh theme={null}
$ 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:

```sh theme={null}
$ 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:

```sh theme={null}
$ sysg restart --service api
$ sysg logs --service worker
$ sysg stop --service redis
```

## See also

* [Configuration](../configuration) - Define services
* [Quickstart](../../quickstart) - First steps
