Skip to content

axle show

Terminal window
axle show <package> [--json]

Prints each task of a package or project with its final settings, after merging the defaults, the tasks plugins add, 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.

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 that suggests the closest one.

--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 gives.

{
"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"
}
}
}