11

I've downloaded the Handbrake CLI. What's the best place to install a command line app on my Mac?

2 Answers 2

12

/usr/local/bin is meant for installing local (UNIX) software. Conveniently, it is also included in $PATH by default, so you don't need to prefix the full path to run commands installed there.

You do need root access to install/copy files there, you could accomplish this by using sudo while moving the binary there.

0
18

The best way to install anything on OSX is (IMHO) with Homebrew. You can install Homebrew with this command:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then you can install stuff (like handbrakeCLI) like this:

brew install handbrake

Then you can run it straight away from any command prompt with:

handbrakeCLI ...
5
  • 2
    This is out of date (17-03-2017): brew install handbrake will install the handbrakecli. After it installs which handbrakecli to confirm its existence.
    – Simon
    Mar 16, 2017 at 23:43
  • Currently this installs on Yosemite as HandBrakeCLI -- important for those with a case-sensitive file system.
    – pcronin
    Aug 12, 2017 at 20:37
  • 3
    15-02-2019 - could not find HandBrakeCLI/handbrakecli in brew, so I installed it via handbrake.fr/rotation.php?file=HandBrakeCLI-1.2.0.dmg
    – Simon
    Feb 14, 2019 at 22:31
  • brew install handbrake works for me on Catalina. it downloaded handbrake-1.3.0.catalina.bottle.1.tar.gz
    – XoXo
    Jan 5, 2020 at 23:54
  • brew cask install handbrake is the command to install the HandBrake application, but as far as I can tell, it does not also install the command line application (used for scripting batch conversion, etc). That must be downloaded from the link that @Simon provided.
    – tdensmore
    Apr 6, 2020 at 4:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .