Installing Maestro
Learn how to install the Maestro framework by following these simple setup steps to get started quickly on macOS, Linux or Windows.
Prerequisites
Maestro requires Java 17 or higher to be installed on your system. You can verify your Java version by running:
java -version
If you don't have Java 17 or higher installed, you can download it from:
Or use a version manager like SDKMAN!
Installing the CLI
Run the following command to install Maestro on macOS, Linux or Windows (WSL):
curl -fsSL "https://get.maestro.mobile.dev" | bash
If you're on macOS, you can use Homebrew instead of the install script above:
brew tap mobile-dev-inc/tap
brew install maestro
Upgrading the CLI
Simply run the installation script again:
curl -fsSL "https://get.maestro.mobile.dev" | bash
Installing a specific version of Maestro
To install a specific version, export the MAESTRO_VERSION
environment variable and run the same installation command as before:
export MAESTRO_VERSION={version}; curl -Ls "https://get.maestro.mobile.dev" | bash
See the list of available versions.
Installing a specific version of Maestro in a Dockerfile
Define a variable for the version you want to install:
ENV MAESTRO_VERSION {version}
Then download Maestro and add it to your path:
RUN mkdir -p /opt/maestro && \
wget -q -O /tmp/${MAESTRO_VERSION} "https://github.com/mobile-dev-inc/maestro/releases/download/cli-${MAESTRO_VERSION}/maestro.zip" && \
unzip -q /tmp/${MAESTRO_VERSION} -d /opt/ && \
rm /tmp/${MAESTRO_VERSION}
ENV PATH=/opt/maestro/bin:${PATH}
Connecting to Your Device
maestro test
will automatically detect and use any local emulator or USB-connected physical device.
Note: At the moment, Maestro does not support physical iOS devices
Last updated
Was this helpful?