# axle show

Show the tasks of a package or project, their settings, and where each setting came from.

```sh
axle show <package> [--json]
```

Prints each task of a package or [project](https://axlers.dev/docs/reference/configuration.md#projects) with its final settings, after merging the defaults, the tasks [plugins](https://axlers.dev/docs/reference/plugins.md) add, [presets](https://axlers.dev/docs/reference/configuration.md#presets), the root `axle.toml` and the package's own. Next to each setting is where it came from: a file and line, `package.json`, a plugin, such as `plugin python`, or `default`. A list that adds to another with `"..."` names both.

```text
web (packages/web), a pnpm package

build
  description    Builds the site for production   packages/web/axle.toml:2
  command        vite build                       package.json
  dependsOn      ^build, codegen                  axle.toml:9
  outputs        dist/**, .next/**                packages/web/axle.toml:3, adds to axle.toml:11
  cache          true                             default
  persistent     false                            default
  variants       dev                              packages/web/axle.toml:6
```

The first line says whether it's a package or a project, and lists its tags. A project's heading reads `worker (services/worker), a project, tags backend and go`, and one a plugin found reads `a project from the plugin python`.

It's the quickest way to check why a task waits for another, or which file to edit to change a setting. A name that isn't a package is an [error](https://axlers.dev/docs/messages/unknown-package.md) that suggests the closest one.

## JSON output

`--json` prints the output's `formatVersion`, which is 1, then the package's `name`, `folder`, `kind` (`package`, `project` or `plugin`), `packageManager` and `tags`, and `tasks`, an object with one entry for each task. Each entry has the settings that a file or a plugin sets, each as `{ "value", "from" }`, with `addsTo` when a list adds to another. `setEnv` has one such object for each variable, `ready` has one for its `check` and one for its `timeout`, and `variants` gives where each variant came from. An entry also has the `package.json` `script` when no `command` replaces it. Settings left at their default are left out. On an error, `--json` prints `{ "formatVersion": 1, "error": { "file", "line", "column", "code", "message" } }` instead, the same shape as [axle list](https://axlers.dev/docs/reference/list.md#json-output) gives.

```json
{
    "formatVersion": 1,
    "name": "web",
    "folder": "packages/web",
    "kind": "package",
    "packageManager": "pnpm",
    "tags": [],
    "tasks": {
        "build": {
            "description": {
                "value": "Builds the site for production",
                "from": "packages/web/axle.toml:2"
            },
            "outputs": {
                "value": ["dist/**", ".next/**"],
                "from": "packages/web/axle.toml:3",
                "addsTo": ["axle.toml:11"]
            },
            "script": "vite build"
        }
    }
}
```
