# Commands for services run beside the app

These commands show and manage the containers the app's packages run
beside it, in `jadpo dev` and in a native deployable.

| Command | Does |
|---|---|
| `jadpo services` | The services the app runs; `start`, `stop`, `restart`, `logs`, `shell` |

| Command | What it does |
|---|---|
| [`jadpo services`](/docs/jadpo-services.md) | Show and manage the app's services. |

## `jadpo services`

Shows and manages the containers the app's packages run beside it
([Running a service in a
container](/docs/running-a-service-in-a-container.md)). It asks
the running app, never the container engine: the project's running `jadpo
dev`, or with `--deployable <name>` that native deployable running on this
machine, which supervises its services itself. `service` is a synonym, and
each action takes `--json`.

- `jadpo services`, or `list`, is a table of each service: its connection,
  package, image, state (`● running`, `‖ stopped`, `○ starting` or
  `restarting`, `✗ failed`, and in `jadpo dev` `◆ waiting` for a person to
  accept its image, `▲ no engine` or `– faked`), health, CPU as a share of
  one core, memory, restarts and uptime, then each alert, a footer and one
  hint. An app whose packages run nothing says `No services`.
- `start <service>` starts one that is stopped, `stop <service>` stops one
  until it is started, its calls answering meanwhile as a provider that is
  down, and `restart <service>` starts one afresh, counting a restart.
- `logs <service>` prints what it wrote, a line each, `--since` a while
  ago (`30s`, `10m`, `2h`, `1d`) or a time in UTC
  (`2026-12-03T09:30:00Z`), and with `--follow` each line as it is written,
  until the service stops or ctrl-c; under `--json`, each line's `stream`,
  `at` and `line`, one envelope a line when following.
- `shell <service>` opens a shell inside one, in development only, through
  the engine's own command line, `docker exec -it` or `podman exec -it`,
  found on `PATH`. It takes no `--deployable` and no `--json`.

```text
$ jadpo services
  service  package     image                  state      health  cpu   memory  restarts   up
  pdfs     AcmePdf.v1  acme/pdf:1@sha256:4a…  ● running  –       0.4%  48.0 MB        0  2 h

✓ 1 service  1 running
→ jadpo services logs pdfs  shows what it wrote
```

With `--json`, `services` lists each one's `service`, `package`, `image`,
`state`, `health`, `cpu_percent`, `memory_bytes`, `restarts`, `uptime_s`,
`address` and `alert`; `start`, `stop` and `restart` give the one
`service`.

A deployable is asked through the Unix socket it listens on while it runs
services, in the folder `JADPO_SERVICES_SOCKETS` names, else
`jadpo-services` in the system's temporary folder, so run it on the
deployable's machine with the same variable. `jadpo dev`'s socket is in
the same folder. An action, service or option it doesn't take is
`cli.services_arguments`, naming the services there are; a running app
that can't be reached, or can't do what was asked, is
`services.unavailable`.
