# `jadpo manifest`

Send manifests to monitoring.

The manifest protocol (area 16): `send`, run as a deploy happens, checks the project and gives the monitoring product at the app's telemetry endpoint each deployable's manifest, or the one deployable it names, which its telemetry's `jadpo.build`, `jadpo.identity` and `jadpo.source` decode against. It reads the endpoint and credential as the deployed app does, from the environment and then `.env.local`, and no other setting. A product keeps a build's first manifest, so sending again is safe. `protocol` is the conformance test a monitoring product's CI runs against its own endpoint, with OTEL_EXPORTER_OTLP_HEADERS as its credential; it needs no project.

```text
jadpo manifest <action> [target]
```

## Arguments

- `action`: What to do: send or protocol
- `target` (optional): send's deployable, or protocol's endpoint

## 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 manifest --json` writes one JSON document to standard output instead of text, with the same exit code. The document has `schemaVersion`, `command` (`"manifest"`), `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
# Give the monitoring product the builds being deployed
jadpo manifest send
# Check that a product follows the protocol
jadpo manifest protocol https://collector.example
```

## Errors

- [`cli.manifest_arguments`](/docs/errors/cli.manifest_arguments.md): A `jadpo manifest` command names no action, one it doesn't have, a deployable the app doesn't declare, or no address to check
- [`manifest.send_failed`](/docs/errors/manifest.send_failed.md): A build's manifest had nowhere to go, or the endpoint `jadpo manifest send` gives it to couldn't be reached or refused it
- [`manifest.protocol_mismatch`](/docs/errors/manifest.protocol_mismatch.md): A monitoring product's endpoint answers the manifest protocol's requests differently from the protocol
- [`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
