# `cli.services_arguments`

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.

Area 14, [Tools](/docs/tooling.md); not declinable; the next step is usually the agent's.

## Why Jadpo refuses it

`jadpo services` lists the containers the app's packages run beside it,
and starts, stops, restarts, reads or opens a shell in one. Each action
but the list needs to know which service, named by its connection in
`app.jadpo`, and it never picks one for you. A service a connection
doesn't run is named with those the app does run.

## What it looks like

An app whose connections run no service:

```jadpo
application {}
```

```sh
jadpo services logs pdfs
```

```text
error: There is no service `pdfs`: the app runs none
  reason: A service is a container a provider package's `runs:` declares, started beside the app for a connection to it, and no connection in `app.jadpo` is to such a package.
  next: Run `jadpo services` once a connection uses a package with `runs:` (agent)
  rule: cli.services_arguments
  help: https://jadpo.dev/docs/errors/cli.services_arguments
```

`(agent)` at the end of the `next:` line means your coding agent can make the fix itself.

An action it doesn't have is refused with the ones it does:

```sh
jadpo services reboot
```

```text
error: `reboot` isn't something `jadpo services` does
  reason: `jadpo services` lists the services, or manages one: `list`, `start`, `stop`, `restart`, `logs` or `shell`.
  next: Run `jadpo services` to list them (agent)
  rule: cli.services_arguments
  help: https://jadpo.dev/docs/errors/cli.services_arguments
```

## How to fix it

**If you want to see the services**, list them, then name one by its
connection:

```sh
jadpo services
jadpo services logs pdfs
```

The list names each service the app runs, by its connection in
`app.jadpo`, and the second command prints what that one wrote.

**If you want what a production service wrote**, ask the deployable for
it, since a shell is for development only:

```sh
jadpo services logs pdfs --deployable app
```

That reads the service's output through the running deployable, on the
machine it runs on.

## Related

- [`jadpo services`](/docs/commands-for-services-run-beside-the-app.md#jadpo-services)
- [Running a service in a container](/docs/running-a-service-in-a-container.md)
