# `jadpo inspect`

Print the project map, or one node.

Print the project map (areas 14 and 18): each domain's declarations, where each is written, and what each calls, runs and raises, then a count. Given a name, print that one node: where it is, its description, its signature, a type's final fields with where each came from, and its edges both ways. --json prints the manifest, or the one node and its fields as the manifest has them. A name is a declaration's as code writes it, its domain first when two domains share it. The project must check without errors first.

```text
jadpo inspect [name]
```

## Arguments

- `name` (optional): A declaration's name

## 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 inspect --json` writes one JSON document to standard output instead of text, with the same exit code. The document has `schemaVersion`, `command` (`"inspect"`), `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
# Print the project map
jadpo inspect
# Print one node as data
jadpo inspect greet --json
```

## Errors

- [`cli.inspect_arguments`](/docs/errors/cli.inspect_arguments.md): A `jadpo inspect` command names a declaration the project doesn't have, or a name two domains share
- [`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
