A better native open utility. Open URLs, paths and locators in the default or specified browser with options including opening in incognito mode. Cross-platform.

Usage no npm install needed!

<script type="module">
  import bopenCli from '';



npm version

A better native open utility for macOS and Windows, with emphasis on browsers and sugar for common configuration. Open URLs, file paths and other locators as supported by your system.

Provide the location and optionally the target browser or application, and whether to open in incognito/private mode, alongside initial arguments and app arguments. Rather than exec, bopen spawns the target process for improved safety.

See bopen (NPM) for the library.


$ npm install --global bopen-cli


$ bopen --help

  Usage: bopen <url|path> [options]

    -i, --incognito  Open in incognito/private mode                      [boolean]
    -b, --browser    Browser to launch URL with
                            [choices: "chrome", "firefox", "ie", "edge", "safari"]
    -a, --app        App to launch location with
    -t, --targs      Target app arguments, use --targs="ARGS" format
    -o, --oargs      Opener arguments, use --oargs="ARGS" format
    -v, --version    Show version number                                 [boolean]
    -h, --help       Show help                                           [boolean]

    bopen               Open webpage in default browser
    bopen image.png                        Open file in default viewer
    bopen -b chrome     Open in Chrome
    bopen -b firefox    Open in Firefox
    bopen -b chrome -i  Open with Chrome in incognito
    bopen -b ie -i      Open in IE with InPrivate
    bopen --targs="-n"  Open with target app args


Apache 2.0. © Alex Greenland,