# `jadpo services`

Show and manage the app's services.

Shows each container a package runs beside the app (area 11): its package, image, state, health, CPU and memory, restarts and uptime. `start`, `stop` and `restart` manage one, `logs` prints what it wrote (`--since`, `--follow`) and `shell` opens a shell inside one, in development only. It asks the running app, never the container engine: the project's running `jadpo dev`, or with `--deployable` a native deployable running on this machine, which supervises its services itself.

Also: `jadpo service`.

```text
jadpo services [action] [service]
```

## Arguments

- `action` (optional): What to do: list, start, stop, restart, logs or shell
- `service` (optional): The service, by its connection's name

## Flags

- `--deployable <name>`: Ask this deployable running here
- `--follow`: Keep printing what the service writes
- `--since <time>`: Only lines since 10m, 2h, 1d or a UTC time

## On every command

- `--json`: Print data for tools instead of text
- `--full`: Show everything a report shortens
- `--help`: Show every flag, with examples
- `--color <when>`: Choose when to use colour

`jadpo services --json` writes one JSON document to standard output instead of text, with the same exit code. The document has `schemaVersion`, `command` (`"services"`), `ok`, `data` (what the command produced, `null` when it failed) and `diagnostics` (each error with its `rule`, `reason`, `next` and `help`). A command that needs a terminal refuses `--json` and names the flags that do the same job.

## Examples

```text
# See how each service stands
jadpo services
# Start a service afresh
jadpo services restart renderer
# Follow what a production service writes
jadpo services logs renderer --follow --deployable app
```

## Errors

- [`cli.services_arguments`](/docs/errors/cli.services_arguments.md): A `jadpo services` command names an action it doesn't have, a service the app doesn't run, or an option its action doesn't take
- [`services.unavailable`](/docs/errors/services.unavailable.md): The running app couldn't be asked about its services, because it isn't running on this machine, or couldn't do what was asked of one
- [`toolchain.project_not_found`](/docs/errors/toolchain.project_not_found.md): You ran a command that works on a project in a folder with no `app.jadpo`, in it or in any folder above it
