Homebrew Cask Install App Command: brew install --cask

Homebrew casks install macOS apps with a single command: brew install --cask <token. This guide gives the exact syntax, where the files land, and the fixes for the usual failures.

The command is brew install --cask <token>

Run brew install --cask firefox to install a Mac app. Homebrew downloads the app, verifies it against the cask definition, and places the result in /Applications by default.

The word cask is what separates an app from a command-line tool. A formula builds or bottles software you run in a terminal. A cask describes a packaged macOS application: an .app bundle, a disk image with an installer, a .pkg, a font, or a plugin. The install command is the same brew install, and --cask tells Homebrew which kind of package definition to use.

Replace firefox with the cask token, not the marketing name printed on the vendor's website. Tokens are lowercase and hyphenated, and they occasionally differ from the app name, which is why searching first is worth the ten seconds.

Workflow diagram for homebrew cask install app command.

Quick answers

  • Install an app: brew install --cask <token>
  • Install several at once: brew install --cask <token> <token>
  • Find the token: brew search --cask <name>, then brew info --cask <token>
  • See installed casks: brew list --cask
  • Update one app: brew upgrade --cask <token>
  • Remove an app: brew uninstall --cask <token>
  • Install into your home folder: add --appdir="$HOME/Applications"
  • Old syntax: brew cask install no longer exists

Before the first install: two checks

Confirm Homebrew is present and current. brew --version prints a version line; if the shell answers command not found, Homebrew is either missing or not on your PATH. On Apple silicon the binary normally lives in /opt/homebrew/bin, on Intel Macs in /usr/local/bin.

Then refresh the cask catalogue with brew update. Cask definitions are versioned in a tap, so a stale local copy is the single most common reason an app that clearly exists cannot be found. Running brew update once before installing saves a round of debugging.

What happens when you press Enter

brew install --cask <token> runs four visible stages. Homebrew resolves the token from the tap, then downloads the artefact, then verifies its checksum against the definition, then copies or runs the installer. A successful run prints a few summary lines: the cask name, its version, and the location it was installed to.

Two things can interrupt the flow. Apps shipped as a .pkg installer, or casks that need to write into system directories, ask for your administrator password through sudo. Casks also print caveats, short notes from the definition author that flag a required extra step, a licence prompt, or a limitation. Read them; they are the definition's own documentation and they appear only once.

The checkpoint is simple: the app appears in /Applications and brew list --cask includes its token. If both are true, the install is complete.

Choosing the destination folder

Casks copy app bundles into /Applications unless told otherwise. Pass --appdir to change that for one install, for example brew install --cask <token> --appdir="$HOME/Applications".

For a permanent preference, export HOMEBREW_CASK_OPTS with the same flag so every cask install and upgrade uses it. This matters on managed Macs where /Applications is not writable, and on setups that deliberately keep user-installed apps out of the system-wide folder.

The trade-off is discoverability. Spotlight still finds apps installed in ~/Applications, but /Applications is where most people look, and some installers assume their bundle sits there. Choose a custom location only when you have a reason, and record the flag in your shell profile so later upgrades keep the app in the same place.

Editorial illustration for homebrew cask install app command.

Casks versus formulas, in practice

Formula and cask namespaces overlap, so the same word can resolve to two different packages. brew search docker returns both a formula and a cask; brew info --cask docker describes the desktop application, while brew info docker describes the command-line tooling.

That overlap is the reason --cask should be written out. Omitting it either installs the command-line package or produces a name-not-found error, and neither outcome matches the intent of installing a Mac app. When in doubt, ask Homebrew what the token is before running the install.

Updating installed apps

brew upgrade --cask <token> replaces an installed app with the current version in the cask definition. Use brew outdated --cask first to see which apps have newer definitions, and brew upgrade --cask --greedy when you also want casks that declare their own auto-update mechanism to be refreshed.

The caveat is worth understanding: some casks mark themselves as self-updating, and Homebrew skips them during a normal upgrade because the app updates itself. Forcing them with --greedy can install a build the vendor's own updater would have handled differently. Neither approach is wrong; the difference is who owns the update.

Removing an app

brew uninstall --cask <token> removes the app bundle and the files the cask definition installed. Add --zap to also delete the preference files and caches the definition lists. Without --zap, settings survive a reinstall; with it, you get a clean slate.

If you only want to confirm what a cask owns before deleting anything, brew list --cask <token> prints the files it tracks.

Troubleshooting the install command

command not found: brew means the shell cannot see the Homebrew prefix. Re-run the shell setup that Homebrew printed during installation, or add /opt/homebrew/bin (Apple silicon) or /usr/local/bin (Intel) to PATH explicitly.

Error: Cask 'x' is unavailable usually means the token is spelled differently or the local catalogue is stale. Run brew update, search with brew search --cask, and copy the token that Homebrew reports rather than retyping the app name.

brew cask install fails because that syntax was removed. Cask management moved into brew itself, so brew cask install x, brew cask list, and brew cask uninstall x are now brew install --cask x, brew list --cask, and brew uninstall --cask x.

The app launches but macOS blocks it is a Gatekeeper signature question, not a Homebrew failure. Apps that carry quarantine attributes show the standard unidentified-developer dialog. Removing the attribute with xattr -dr com.apple.quarantine /Applications/<App>.app suppresses the prompt, which means you take responsibility for trusting that binary. Prefer the vendor's signed release where one exists.

Permission denied writing to /Applications points to ownership or a managed-device policy. Installing into ~/Applications with --appdir is the least invasive fix; changing ownership of /Applications is not, and it can break system updates.

An app already in /Applications is left alone. Homebrew will not overwrite a bundle it did not install. Move the existing copy aside, then run the install again so the cask owns the file it manages.

Follow-up questions

Getting started

Does brew install --cask need sudo? Only for casks that write into system locations or run a .pkg installer. Plain app-bundle casks install without a password.

Can I install several apps in one command? Yes. brew install --cask <token> <token> installs them in sequence and reports each result.

How do I know the token before installing? Search first, then read the summary line: brew search --cask <name> lists candidates and brew info --cask <token> shows the version and caveats for one.

Managing installs

Where do cask-installed apps live? In /Applications by default, or wherever --appdir or HOMEBREW_CASK_OPTS points.

Do casks update automatically? Not under Homebrew. Run brew upgrade --cask periodically, or brew upgrade --cask --greedy if you also want self-updating casks refreshed.

Does uninstalling also delete settings? Not by default. Add --zap to remove the preference files and caches the cask definition lists.

Fixing failures

Why does the token exist but the install fail? Check the download itself: a changed upstream URL, a checksum mismatch, or a network block produces a failure that reads like a missing cask. The error text distinguishes them.

Why is the app missing after a clean install? Confirm the destination with brew list --cask <token>; a custom --appdir value from an earlier session may still be in HOMEBREW_CASK_OPTS.

Can I install a cask without Homebrew at all? You can, by downloading the vendor's installer, but you then lose the checksum verification and the tracked uninstall that casks provide. The command is worth using for those two properties alone.