Installation

  1. Prerequisites
  2. Package managers
    1. Homebrew
      1. Install from the command line
      2. Install from a Brewfile using brew bundle
      3. Upgrade
      4. Pinning to the currently installed version
      5. Uninstall
    2. npm
      1. Install globally
      2. Install locally
      3. Pin to a specific version
        1. Globally
        2. Locally
    3. cargo (coming soon)
    4. apt (coming soon)
  3. Building from source
    1. Building from a specific git tag or commit SHA
      1. Update your path

Prerequisites

In order to install Best, you will need to run some commands from a terminal on your computer. You should have some basic competency working in a terminal, and always use caution when installing a new application from the internet.

Package managers

In order to manage Best installation, upgrades, and uninstallation programmatically, it is recommended to use a package manager, where available.

As of 2026-11-05, only Homebrew is supported, but support for npm, cargo, and apt are coming soon before the end of 2026. Additional package managers will likely be supported in 2027.

Homebrew

Install from the command line

$ brew tap paulshryock/tap https://codeberg.org/paulshryock/homebrew-tap
$ brew trust --formula paulshryock/tap/best
$ brew install best

Install from a Brewfile using brew bundle

If you would prefer to install from a Brewfile, then add the following lines:

tap "paulshryock/tap", "https://codeberg.org/paulshryock/homebrew-tap"
brew "paulshryock/tap/best", trusted: true

And then install:

brew bundle install

Pinning to the currently installed version

You can pin Best to the version which is currently installed. While it is pinned, brew upgrade will not upgrade Best.

$ brew pin --formula paulshryock/tap/best

If you have previously pinned Best, you can unpin it in order to upgrade.

$ brew unpin --formula paulshryock/tap/best

Upgrade

$ brew update
$ brew upgrade best

Uninstall

$ brew uninstall best
$ brew untrust --formula paulshryock/tap/best
$ brew untap paulshryock/tap

npm

In most cases, you should install Best locally in an individual project as a development dependency, and pin to a specific version.

Install globally

You can install globally to run the best binary from anywhere on your system.

npm install --global @paulshryock/best

Install locally

Or you can install Best locally in an individual project as a development dependency.

npm install --save-dev @paulshryock/best

Pin to a specific version

npm dependencies are validated using exact-version enforcement (X.Y.Z with no ^, ~, *, or range operators) rather than SHA-pinning (40-character commit hashes).

Globally
npm install --global --save-exact @paulshryock/best@0.3.9
Locally
npm install --save-dev --save-exact @paulshryock/best@0.3.9

cargo (coming soon)

apt (coming soon)

Building from source

If you:

then you can do so by building from source.

git clone https://codeberg.org/paulshryock/best
cd ./best/
make
make install

Building from a specific git tag or commit SHA

Note: Windows users will have a bit more of a manual setup. make install will probably not work on Windows, and you'll need to symlink dist/best into an appropriate directory on your system, and make sure that directory is in your path, which is not documented here at this time. Please create an issue on Codeberg if you need help.

git clone https://codeberg.org/paulshryock/best
cd ./best/
git checkout $TAG_OR_COMMIT_SHA
make
make install

make install will symlink the best binary into ~/.local/bin.

Note: Before v0.3.10, make install does not exist, and instead you will need to manually symlink the binary instead of running make install:

ln -fs ${PWD}/dist/best ~/.local/bin/

Update your path

Check if ~/.local/bin is already in your path. The following command should print the directory path if it is already in your path. Otherwise it will exit with a non-zero code.

echo "$PATH" | tr ':' '\n' | grep "\.local/bin"

If it is not in your path already, then you will need to add it to your path somehow, typically in your shell configuration file such as ~/.zshrc or ~/.bashrc.

For example:

export PATH=$HOME/.local/bin:$PATH

Since Best does not know your preferred system configuration and shell, this is left for you to figure out on your own, or please open a Codeberg issue if you need help.