"zsh: command not found" when running maestro on macOS

448 Views Asked by At

In order to test my mobile app, I want to try Maestro mobile.

Following the official documentation, I installed Maestro on my Mac (macOS 13.5.1, M1 chip) using the following command:

curl -Ls "https://get.maestro.mobile.dev" | bash

Then I wanted to test it out using the following command:

maestro download-samples

Unfortunately, I got the following error:

zsh: command not found: maestro

So I searched where is Maestro located on my Mac, so I can add it in the PATH, but I can't find it.

Do you know where is Maestro installed on macOS? Or how I can fix that?

Thanks.

3

There are 3 best solutions below

0
On

That's strange, when I launch the curl command, I got nothing in the terminal, not even error...

I also got nothing in the terminal. Then I tried sudo to the command, an error message for the proxy was output.

% sudo curl -Ls "https://get.maestro.mobile.dev" | zsh
Password:
* Create distribution directories...
* Downloading...
curl: (5) Could not resolve proxy: xxxxxxxx

After disconnecting from the VPN and trying the command without sudo, the following message was output and the download starts.

% curl -Ls "https://get.maestro.mobile.dev" | zsh
* Create distribution directories...
* Downloading...
* ######################################################################## 100.0%
* Welcome to Maestro!
1
On

I got the same error and as @andrew suggested opening a new terminal after installing helped me. Just posting here if anyone comes across this issue.

2
On

For me, using the following command solved the problem (I used zsh instead of bash):

curl -Ls "https://get.maestro.mobile.dev" | zsh

I also needed to install Java.