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

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail:

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap