# Shopify CLI can't install - error

**URL:** <https://community.shopify.com/t/shopify-cli-cant-install-error/163624>\
**Category:** Tools\
**Created:** [October 29, 2022, 3:31am UTC](https://community.shopify.com/t/shopify-cli-cant-install-error/163624 "2022-10-29T03:31:09Z")\
**Posts on this page:** 2\
**Page:** 1

## AI-generated summary

Installation of Shopify CLI on macOS via Homebrew led to an error when running “shopify version” (error screenshot referenced).

Resolution and key updates:
- Use Shopify CLI 2 (not 3) for theme development.
- Update Ruby to version 3.1.2 to ensure compatibility.
- Run commands with the “shopify2” binary (e.g., “shopify2 theme push”).

Notes:
- Shopify CLI is the command-line tool for Shopify; the v2 binary is named “shopify2”.
- The exact error details aren’t provided beyond a screenshot, but switching to CLI v2 and updating Ruby resolved the issue.

Outcome: Issue resolved; no further action requested and no ongoing disagreements.

<div class="post-metadata">

**Author:** ![thedesignersdev](https://avatars.discourse-cdn.com/v4/letter/t/76d3ee/32.png) [@thedesignersdev](https://community.shopify.com/u/thedesignersdev)\
**Post date:** [October 29, 2022, 3:31am UTC](https://community.shopify.com/t/shopify-cli-cant-install-error/163624/1 "2022-10-29T03:31:09Z")

</div>

I’m trying to install Shopify CLI on Mac.

I’ve done:

brew tap shopify/shopify  
brew install shopify-cli

When I run: shopify version I get the bellow error.

 ![Screen Shot 2022-10-29 at 11.29.56 am.png](https://canada1.discourse-cdn.com/shopifyforum/original/3X/4/a/4aa41b3df646e6e6c223ddac5c427155822c5469.png)

---

<div class="post-metadata">

**Author:** ![thedesignersdev](https://avatars.discourse-cdn.com/v4/letter/t/76d3ee/32.png) [@thedesignersdev](https://community.shopify.com/u/thedesignersdev)\
**Post date:** [October 30, 2022, 3:30am UTC](https://community.shopify.com/t/shopify-cli-cant-install-error/163624/2 "2022-10-30T03:30:18Z")

</div>

Solved.

I needed to install Shopify CLI 2 (not 3) for themes and update Ruby to 3.1.2

Then use shopify2 for all terminal commands.  
Eg, shopify2 theme push
