How to run Gradle from Mac Terminal (Command Line)

If you want to run Gradle Tool from your Mac Terminal, you will first need to get it installed.

You can make use of homebrew command to install gradle from Terminal.

brew install gradle
installing gradle on Mac

You will need to install homebrew first if you do not have it.

Once the installation is complete, you can check if gradle is installed correctly by running the version command.

gradle --version
Gradle 8.0

Build time:   2023-02-13 13:15:21 UTC
Revision:     62ab9b7c7f884426cf79fbedcf07658b2dbe9e97

Kotlin:       1.8.10
Groovy:       3.0.13
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          20 (Oracle Corporation 20+36-2344)
OS:           Mac OS X 13.4 aarch64

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