Skip to main content

🧑‍💻 Installing Mason CLI

info

In order to install Mason CLI you must have the Dart SDK installed on your machine.

We recommend installing mason_cli from pub.dev

# 🎯 Activate from https://pub.dev
dart pub global activate mason_cli
note

To install a specific version of mason_cli from pub, use the following command:

dart pub global activate mason_cli <VERSION>

🍺 Homebrew

Alternatively, mason_cli can be installed via homebrew

# 🍺 Install from https://brew.sh
brew tap felangel/mason
brew install mason
note

To install a specific version of mason_cli from homebrew, use the following command:

brew tap-new felangel/mason
brew extract --version <VERSION> mason felangel/mason
brew install felangel/mason/mason@<VERSION>

📚 Summary

Once you have successfully installed the mason_cli you can verify your setup by running the mason command in your terminal. If mason_cli was installed correctly, you should see something similar to the following output:

🧱  mason • lay the foundation!
Usage: mason <command> [arguments]
Global options:
-h, --help Print this usage information.
--version Print the current version.
Available commands: ...