BUNDLE-OPEN(1) General Commands Manual BUNDLE-OPEN(1)

# [NAME](#NAME)

**bundle-open** - Opens the source directory for a gem in your bundle

# [SYNOPSIS](#SYNOPSIS)

**bundle open** \[GEM] \[--path=PATH]

# [DESCRIPTION](#DESCRIPTION)

Opens the source directory of the provided GEM in your editor.

For this to work the **EDITOR** or **BUNDLER\_EDITOR** environment variable has to be set.

Example:

```
bundle open 'rack'
```

Will open the source directory for the 'rack' gem in your bundle.

```
bundle open 'rack' --path 'README.md'
```

Will open the README.md file of the 'rack' gem source in your bundle.

# [OPTIONS](#OPTIONS)

[**--path\[=PATH\]**](#path_=PATH_)

Specify GEM source relative path to open.

April 2026

---

Document: bundle-open(1) from ruby4.0-bundler 4.0.17-r1 (Chainguard OS)
Source: https://github.com/rubygems/rubygems
