# Add to an existing repository

Use Axle in a repository you already have.

Axle reads the files your repository already has, so there is nothing to write first. [`axle init`](https://axlers.dev/docs/reference/init.md) adds it to the root `package.json` and `.gitignore` and writes a starting `axle.toml`.

## What your repository needs

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](https://axlers.dev/docs/crafting-your-repository/structuring-a-repository.md) has the details.

## See what Axle found

[Install Axle](https://axlers.dev/docs/getting-started/installation.md), then run this anywhere inside the repository:

```sh
pnpm exec axle list                             # pnpm
npx axle list                                   # npm
yarn axle list                                  # Yarn
bunx axle list                                  # Bun
nubx axle list                                  # nub
aube exec axle list                             # aube
```

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

```sh
pnpm exec axle run build                        # pnpm
npx axle run build                              # npm
yarn axle run build                             # Yarn
bunx axle run build                             # Bun
nubx axle run build                             # nub
aube exec axle run build                        # aube
```

If Axle reports a problem, look it up under [messages](https://axlers.dev/docs/messages.md).
