# Install

> Add bump to a project, run it with bunx or a package.json script, and check the tools that it needs.

bump is a dev dependency of the repository that you release.

## Add bump

```sh
bun add --dev bump
```

bump runs on [Bun](https://bun.sh) 1.4 or later. The `bump` command runs with Bun, also when npm, pnpm, or Yarn installs it, so Bun must be on your `PATH`.

## Run bump

Run it with `bunx`:

```sh
bunx bump patch
```

Or add a script to your `package.json`:

```json [package.json]
{
  "scripts": {
    "release": "bump"
  }
}
```

Then give the arguments to the script:

```sh
bun run release minor --dryrun
```

To see every option:

```sh
bunx bump --help
```

## Requirements

### git

`git` must be on your `PATH`. If it is not, bump stops with `Missing "git" binary`.

bump reads the full history and all tags. A shallow clone stops with an error. See [Full clone](/ci/#full-clone).

### Package managers

When a release edits an npm package, bump updates each npm lockfile that git tracks in the root. It runs the package manager of that lockfile, so that tool must be on your `PATH`. bump edits `Cargo.lock` as text, so it does not need `cargo`. See [Lockfiles](/lockfiles/) for each lockfile and its tool, a missing tool, and Yarn 1.

## Editor support

The config file is optional. When you add one, add a `$schema` line. Your editor then checks the keys and their values, and shows their docs:

```jsonc [bump.json]
{
  "$schema": "https://unpkg.com/bump/schema.json",
  "independent": true
}
```

bump ignores the `$schema` key. See [Config](/config/) for every key.

## Next steps

- [Quick start](/quick-start/): make your first release.
- [CLI](/cli/): see every argument and option.
