AutoBrew
AutoBrew: Homebrew deployments made easy
AutoBrew: Homebrew for the logged in user, automatically
A shell script that installs Homebrew for the currently logged in user, or for a named account, through a management tool like Jamf Pro or Munki, sidestepping the unsupported root install.
Why the script exists
The README opens with a warning rather than a pitch. Running or installing Homebrew as root is extremely dangerous, and the official Homebrew installer no longer supports the root path. That is the gap AutoBrew fills: a user based install you can push out to Macs through management tools instead of running as root on each machine. The disclaimer is quoted in full at the top of the README, so the safety reasoning is hard to miss. The project page sums the whole idea up as Homebrew deployments made easy.
The normal install path
In the common case you run the script through whatever deployment tool you already use, with Jamf Pro and Munki named in the README, and Homebrew installs for the currently logged in user. Running it straight from the command line works the same way. Either way, a system administrator never has to sit at the target machine to complete the install, which is the point of shipping it as a script rather than a set of manual steps.
Installing for a specific user
There is also a variant that takes a username as an argument, so Homebrew lands in a predefined account rather than whoever happens to be logged in. That covers pre staged or scripted setups where an admin wants a specific user prepared ahead of time, which is a common request in enterprise Mac fleets. It is the same script either way, just with an argument that says which account should own the install.
Community notes