> ## Documentation Index
> Fetch the complete documentation index at: https://bun-1dd33a4e-farm-dc5e99a7-serve-route-target-normalization.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Add a development dependency

To add an npm package as a development dependency, use `bun add --development`.

```sh terminal icon="terminal" theme={null}
bun add zod --dev
bun add zod -d # shorthand
```

***

This will add the package to `devDependencies` in `package.json`.

```json theme={null}
{
  "devDependencies": {
    "zod": "^3.0.0" // [!code ++]
  }
}
```

***

See [Docs > Package manager](/pm/cli/install) for complete documentation of Bun's package manager.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.