Fix Error: Unknown command: --cask [Homebrew]

% brew --cask install docker

Error: Unknown command: --cask

If you are trying to install a package/software using the brew cask command and you get the error "Unknown command: --cask" then you have not used the command properly.

The correct syntax is,

brew install --cask <formula>

and not,

brew --cask install <formula>
Error- Unknown command --cask brew on Mac

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!