---
title: How to update Bun itself
url: https://roboin.io/article/en/2026/02/28/how-to-update-the-bun-runtime-to-the-latest-version/
description: This article explains how to update Bun, an all-in-one tool that
  can run, build, and test JavaScript and TypeScript. This article does not
  explain how to update project dependencies using Bun, but instead explains how
  to update Bun itself.
publishedDate: 2026-02-28T18:34:19.089Z
modifiedDate: 2026-02-28T18:34:19.089Z
thumbnail: https://roboin.io/api/og/en/2026/02/28/how-to-update-the-bun-runtime-to-the-latest-version/
thumbnailAlt: 記事のサムネイル画像
thumbnailCaption: N/A
---

# How to update Bun itself

This article explains how to update Bun, an all-in-one tool that can run, build, and test JavaScript and TypeScript.

This article does not explain how to update project dependencies using Bun, but instead explains how to update Bun itself.

## How to update Bun

To update Bun, run the following command in the environment where Bun is installed.

```bash
bun upgrade
```

If a newer version of Bun than the one currently installed is available, it will be updated to the latest version.

If the update fails for some reason, you can update to the latest version of Bun by running the installation command listed on the official Bun website.

When updating using this method, you do not need to uninstall Bun; simply running the installation command will update it to the latest version.

The command to install Bun on Windows is introduced in the following article.

[How to install Bun on Windows](https://roboin.io/article/en/2024/04/13/how-to-install-bun-on-windows/)

## Conclusion

This article explained how to update Bun itself to the latest version, rather than updating dependencies.

If the update fails for some reason, you can update it by running Bun’s installation command.