Skip to content

mise bootstrap packages where ​

Print the opt path of an installed Homebrew formula

Prints a path such as /opt/homebrew/opt/openssl@3 that keeps pointing at the installed version across upgrades. Name the formula as brew:<formula> or brew:<owner>/<tap>/<formula>, using its installed name; aliases are not resolved, and a tap-qualified name matches by formula name only. The command does not read mise config files, so only environment variables and global flags apply. If the formula is not installed, it prints nothing and exits with a nonzero status. Works on macOS on Apple silicon and on Linux (x86_64 and arm64).

Arguments ​

  • <PACKAGE> — Formula to locate, as brew:<formula> or brew:<owner>/<tap>/<formula>

Flags ​

  • -h --help — Print help

Examples ​

Put a formula's bin directory on PATH when it is installed

if root="$(mise bootstrap packages where brew:unzip)"; then
  export PATH="$root/bin:$PATH"
fi
MIT LicenseCopyright © 2026jdx.dev