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/eb275ddb9290b947ba4c53ac30538c77b44edae9-720x405_1y2MXK.webp)

News & Announcements June 25, 2026

[

### Netlify Functions, designed for Agent Experience

](/blog/netlify-functions-designed-for-agent-experience)

-   ![Profile picture of Eduardo Bouças](/_astro/52958f21e8450baf6d8e60302341a984e220c0cd-512x512_13VDlu.webp)
    
    Eduardo Bouças
    

![](/_astro/d20f9f717bbdd511f73ee138be4114ff13f480f9-2400x1350_1fe4aq.webp)

News & Announcements June 24, 2026

[

### How we measure Netlify’s Agent Experience

](/blog/how-we-measure-netlify-agent-experience)

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

## Recent posts

News & Announcements June 25, 2026

[

### Netlify Functions, designed for Agent Experience

](/blog/netlify-functions-designed-for-agent-experience)

-   ![Profile picture of Eduardo Bouças](/_astro/52958f21e8450baf6d8e60302341a984e220c0cd-512x512_13VDlu.webp)
    
    Eduardo Bouças
    

News & Announcements June 24, 2026

[

### How we measure Netlify’s Agent Experience

](/blog/how-we-measure-netlify-agent-experience)

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

Guides & Tutorials May 15, 2026

[

### How to build a real-time AI chatbot in minutes with Netlify Agent Runners (no backend)

](/blog/how-to-build-a-real-time-ai-chatbot-in-minutes-with-netlify-agent-runners-no-backend)

-   ![Profile picture of Nahrin Jalal](/_astro/f0e7c8f227a03fe58340c99ef5439d5a896c0733-272x272_Z23kDpD.webp)
    
    Nahrin Jalal
    

![](/_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/)