Astro CLI Install Error on Mac (ZSH)

For users running on a Mac using ZSH, our CLI install command might render the following error:

zsh: done    curl -sSL []( |
zsh: suspended (tty input) sudo bash -s

Apple replaced bash with ZSH as the default shell as of macOS Catalina, and our CLI install command currently presents an incompatibility error with ZSH, sudo and the pipe syntax.


If you’re running macOS Catalina and beyond and are trying to install our CLI, do the following:

  1. Run sudo -K to reset/get back to un-authenticated
  2. Run the following to install the CLI properly:

curl -sSL | sudo bash -s </dev/null

1 Like

Following the above instructions, I receive a different error:

Password:curl: (60) SSL certificate problem: certificate has expired
More details here:

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

Hey @jpuffer- @paola has written up a separate post on the SSL cert resolution here: CLI Error: curl: (60) SSL certificate problem: certificate has expired