# axle info

Show Axle's version, the system, the repository's setup and the tools it uses, to paste into a bug report.

```sh
axle info
axle info --json
```

`axle info` prints what someone helping you needs to know: which Axle you have, on which system, how the repository is set up and which versions of the tools it relies on. Paste it into a [bug report](https://github.com/axle-rs/axle/issues).

```text
Axle
  Version:         1.4.0
  System:          linux x86_64
  In CI:           no

Repository
  Root:            /home/sam/acme
  Package manager: pnpm 10.18.0
  Packages:        24
  Plugins:         python (npm:@axle-rs/plugin-python@1.2.0)
  Cache folder:    /home/sam/.cache/axle
  Remote cache:    https://cache.example.com

Tools
  Node.js:         24.11.0
  Git:             2.51.0
```

It shows only names, versions, folders and addresses. Tokens, keys, environment variables and any user name and password in the remote cache's address never appear, so the output is safe to share. Run outside a repository, it leaves out the repository and the cache.

| Field             | Where it comes from                                                                                                                       |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| `Package manager` | the one Axle uses for the repository, and the version its `--version` prints in the root                                                  |
| `Packages`        | the workspace packages Axle found, without the projects that `projects` and plugins add                                                   |
| `Plugins`         | each plugin in `axle.toml` and its `source`; a plugin that fails to start is a [warning](https://axlers.dev/docs/messages/plugin-skipped.md) above the report |
| `Cache folder`    | the local cache, as [`axle cache status`](https://axlers.dev/docs/reference/cache.md#axle-cache-status) shows it                                              |
| `Remote cache`    | the remote cache's address from `AXLE_REMOTE_CACHE_URL` or `[cache.remote]`, or `none`                                                    |
| `Node.js`, `Git`  | what `node --version` and `git --version` print, or `none` when they aren't installed                                                     |

## JSON output

`--json` prints the same as one JSON object, with `formatVersion` first, for other tools to read. A field that has no value is `null`.

```json
{
    "formatVersion": 1,
    "axle": { "version": "1.4.0", "os": "linux", "arch": "x86_64" },
    "ci": false,
    "repository": {
        "root": "/home/sam/acme",
        "packageManager": { "name": "pnpm", "version": "10.18.0" },
        "packages": 24,
        "plugins": [{ "name": "python", "source": "npm:@axle-rs/plugin-python@1.2.0" }]
    },
    "cache": { "folder": "/home/sam/.cache/axle", "remote": "https://cache.example.com" },
    "tools": { "node": "24.11.0", "git": "2.51.0" }
}
```
