---
title: "Netlify Bun support in Builds"
description: "Netlify Builds now have out of the box support for Bun."
source: "https://www.netlify.com/blog/bun-support-in-builds/"
last_updated: "2026-08-05T07:25:10.000Z"
---
At Netlify we believe that stability and reliability don’t necessarily need to conflict with one’s ability to experiment with new technologies. We’re confident the same applies to the tooling we all use and, as such, it’s our job as the platform of choice for web development to ensure our customers have access to ways they can safely experiment with new tools that could bring added value to their development process. We want to make sure Netlify is the right oven for any kind of project and team, hence why we’re excited to announce Netlify Builds now have out of the box (or should we say out of the oven?) support for [Bun](https://bun.sh/).

## Runtime? Package Manager?

Bun is an all-in-one toolkit for JavaScript and TypeScript apps. It offers not only a JS runtime but also package manager capabilities. We want to make sure our customers have the ability to leverage the best of the tool without too much setup hassle, so our support comes in two fronts.

-   Just as we do for other JS runtimes such as [Node.js](https://nodejs.org/en) and [Deno](https://deno.com/) we now expose the `bun` executable at build time so that folks can run their build commands using `bun` runtime if they choose to.
-   Install and setup of JS dependencies by automatically detecting the presence of a Bun lockfile (`bun.lockb`) and using `bun install` when building a project in our platform.

## How to use Bun with Netlify

You can start using `bun` runtime right away by using the `bun` executable in your build command. Either through your `netlify.toml`:

```
[build]  command = "bun run build"
```

Or by editing your [build command in the configuration UI](https://docs.netlify.com/configure-builds/overview/#set-the-build-command).

To leverage Bun’s package manager capabilities you can do so by running `bun install` locally in your project. This will generate a `bun.lockb` file you should commit and push to your project (more details on Bun’s lockfile can be found [in their docs](https://bun.sh/docs/install/lockfile)). When Netlify Build detects the presence of this file in your repository we’ll run `bun install` instead of `npm` (our default package manager). It’s that simple!

⚠️ Make sure you have no other lockfiles (`package-lock.json`, `yarn.lock` or `pnpm-lock.yaml`) in your repo and no `packageManager` [option](https://nodejs.org/api/packages.html#packagemanager) set in your `package.json` since we’ll be favouring those tools by default.

[Check our docs](https://docs.netlify.com/configure-builds/manage-dependencies/#bun) for further information on how to configure Bun’s package manager capabilities in Netlify.

## Try it out and let us know!

We would love to hear about your experience through our [support portal](https://www.netlify.com/support) or our [community forum](https://community.netlify.com/). We deeply value your feedback and we’re always keen on hearing back from our amazing community.

### Share

-   [X (fka Twitter)](https://twitter.com/intent/tweet?text=Fresh out of the oven: Bun support in Builds&url=https://www.netlify.com/blog/bun-support-in-builds/)
-   [LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.netlify.com%2Fblog%2Fbun-support-in-builds%2F)
-   [Facebook](https://www.facebook.com/sharer.php?u=https://www.netlify.com/blog/bun-support-in-builds/)
-   [Bluesky](https://bsky.app/intent/compose?text=Fresh out of the oven: Bun support in Builds+https://www.netlify.com/blog/bun-support-in-builds/)

* * *

### Tags

-   [Builds](/blog/tags/Builds/)
-   [changelog](/blog/tags/changelog/)

## Keep reading

![](/_astro/19ef665d69b3b077bd19c76d9dfcda7749cad7af-1600x900_Z5yehl.webp)

News & Announcements July 28, 2026

[

### New Netlify projects are now private by default

](/blog/new-netlify-projects-are-now-private-by-default)

-   ![Profile picture of Taylor Barnett-Torabi](/_astro/cf4624da8c1286738397b6fecb53bad504df140b-400x400_ZsvK0s.webp)
    
    Taylor Barnett-Torabi
    

![](/_astro/d0354fe52c160a3abdfdeff297a1baf090302a3d-1600x900_Z1eDdJG.webp)

News & Announcements July 14, 2026

[

### More headroom, a lower per-credit rate, and a bill you can predict: introducing new Pro plan tiers

](/blog/new-pro-plan-tiers)

-   ![Profile picture of Gehrig Kunz](/_astro/b4e9f58d914d1334ea70d53ea55a1f26b26f1445-512x512_17SwOI.webp)
    
    Gehrig Kunz
    

## Recent posts

Opinions & Insights July 28, 2026

[

### Open Weights and the 2nd World

](/blog/open-weights-and-the-2nd-world)

-   ![Profile picture of Mathias Biilmann](/_astro/f193d4707a6391d843d5aaa73338b5a5971ec5cc-960x960_1Yylqm.webp)
    
    Mathias Biilmann
    

Tools & Services July 28, 2026

[

### MCP goes stateless and extensible

](/blog/mcp-goes-stateless-and-extensible)

-   ![Profile picture of Sean Roberts](/_astro/bbf2243f8171dbddd80ab2103622106cef84d125-512x512_Z1d2LKE.webp)
    
    Sean Roberts
    

News & Announcements July 28, 2026

[

### New Netlify projects are now private by default

](/blog/new-netlify-projects-are-now-private-by-default)

-   ![Profile picture of Taylor Barnett-Torabi](/_astro/cf4624da8c1286738397b6fecb53bad504df140b-400x400_ZsvK0s.webp)
    
    Taylor Barnett-Torabi
    

![](/_astro/3f255b372fa958df35802666ee33b4609b2d71bd-1200x1586_1VtE2D.webp)

### How do the best dev and marketing teams work together?

[Access the report](https://www.netlify.com/reports/2024-leadership-trend-report/access/)