Options overview
| Command | What it does |
|---|---|
axle create [<folder>] |
creates a new monorepo from a template, asking what it should hold |
axle init |
adds Axle to a repository, or moves it from another build tool |
axle list |
lists the packages in the repository |
axle list --json |
the same list as JSON, for tools and editors |
axle list --tasks |
lists every task and its command |
axle run <task> |
runs scripts in every package that has them |
axle exec <command> |
runs any command in each package’s folder |
axle watch <task> |
runs tasks, then runs again what each change affects |
axle graph [<task>] |
shows how packages depend on each other, or the order tasks run in |
axle graph --web |
opens the graph as an interactive page in the browser |
axle affected |
lists the packages a change affects |
axle why affected <package> |
explains why a package is affected |
axle affected --exit-code |
exits with 1 when a package is affected, so a hosting service can skip a build |
axle generate [<generator>] |
creates a package or files from a generator, or lists the generators |
axle generate ci |
writes a CI workflow that runs the tasks each change affects |
axle sync |
updates files that follow from the graph, such as TypeScript project references |
axle boundaries |
checks which projects depend on which, and what each file imports |
axle release |
gives changed packages new versions, changelogs and tags in one commit |
axle release add |
writes a change file for the next release |
axle release publish |
publishes the released packages and creates their GitHub or GitLab releases |
axle prune <package>... |
writes a smaller copy of the repository with only those packages, for Docker |
axle migrate |
updates axle.toml, its presets and plugin settings to this version |
axle migrate --upgrade |
also moves the tools plugins know about to new versions, with the code changes they need |
axle import <repository> <folder> |
brings another Git repository into a folder, keeping its history |
axle show <package> |
shows a package’s settings and where each came from |
axle why miss <task> |
explains why a task ran instead of coming from the cache |
axle cache status |
shows where the cache is and how big it is |
axle cache clean |
removes entries from the local cache, or with --remote from the remote cache |
axle link <url> |
connects the repository to a remote cache in axle.toml |
axle unlink |
disconnects the repository from its remote cache in axle.toml |
axle login |
saves a token for a remote cache server, after checking it |
axle logout |
forgets the token saved for a remote cache server |
axle lsp |
the language server for axle.toml, which editors start |
axle daemon |
keeps the repository loaded for an editor, which starts it |
axle mcp |
the MCP server for AI coding agents, which they start |
axle setup agents |
configures AI coding agents to use Axle’s MCP server, and tells them how |
axle add <plugin> |
adds a plugin to axle.toml, downloading it and recording its hash |
axle plugins |
lists the official and community plugins, and the ones in use |
axle info |
shows Axle’s version, the system and the repository’s setup, for bug reports |
axle docs <words> |
finds the pages of the documentation about something, with their Markdown |
axle completion <shell> |
prints the script that completes Axle’s commands and options in a shell |
axle --version, axle -V |
prints the installed Axle version |
axle --help, axle -h |
shows how to use Axle |
Settings that come from the environment are listed in system environment variables, and what Axle can’t find out by itself goes in axle.toml.
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 |
the command worked |
1 |
Axle couldn’t do it, and printed an error saying what |
| other | axle run and axle exec exit with the first failing command’s exit code, or 130 after Ctrl+C. A failing before hook’s exit code also ends the run. axle watch exits with 0 after Ctrl+C |
Some commands exit with 1 by design, to fail a CI step: axle affected --exit-code when a package is affected, axle boundaries when it finds a problem, and axle sync --check and axle migrate --check when files are out of date.