Skip to content

Add to an existing repository

Axle reads the files your repository already has, so there is nothing to write first. axle init adds it to the root package.json and .gitignore and writes a starting axle.toml.

For a monorepo, a root folder with a pnpm-workspace.yaml or a package.json with a workspaces list, and a name in each package’s package.json. Otherwise, any folder with a package.json.

Structuring a repository has the details.

Install Axle, then run this anywhere inside the repository:

Terminal window
pnpm exec axle list

It lists every package with its scripts and the packages it depends on. Then run a script in all of them:

Terminal window
pnpm exec axle run build

If Axle reports a problem, look it up under messages.