# Shopify Cli Error for every action

**URL:** <https://community.shopify.com/t/shopify-cli-error-for-every-action/148323>\
**Category:** Tools\
**Created:** [September 2, 2022, 8:44am UTC](https://community.shopify.com/t/shopify-cli-error-for-every-action/148323 "2022-09-02T08:44:21Z")\
**Posts on this page:** 2\
**Page:** 1

## AI-generated summary

Main issue: On a new Mac, Shopify CLI fails on every action despite installing Ruby (latest and 3.0.0) and Node. Screenshots are central, showing command errors from the CLI.

Context: The user appears to be attempting theme development (e.g., running shopify theme serve). Shopify CLI (command-line interface) is used to authenticate and manage themes; theme serve starts a local development server.

Suggested fix (authentication reset):
- Log out of the Shopify account in the web browser.
- Log out via CLI using: shopify logout.
- Log back into the store in the browser at {shop}.myshopify.com/admin.
- Log in via CLI using: shopify login --store {shop}.myshopify.com.
- Try running shopify theme serve again. If still failing, ensure all sessions are fully logged out and repeat.

Status: No confirmation that the steps resolved the errors. The discussion remains open, with the key question being whether an authentication/session mismatch is causing the CLI failures.

<div class="post-metadata">

**Author:** ![clairegll](https://avatars.discourse-cdn.com/v4/letter/c/fbc32d/32.png) [@clairegll](https://community.shopify.com/u/clairegll)\
**Post date:** [September 2, 2022, 8:44am UTC](https://community.shopify.com/t/shopify-cli-error-for-every-action/148323/1 "2022-09-02T08:44:21Z")

</div>

Hello hello,

I am on a new Mac, i install ruby last version and ruby 3.0.0, i install shopify-cli, i have node and still not working …

I don’t understand why, could you help me pleaaaaaase

 ![Capture d’écran 2022-09-02 à 10.40.17.png](https://canada1.discourse-cdn.com/shopifyforum/original/3X/d/6/d6214beb4ef3be48be6c3bba1c882dce1b8254d0.jpeg)

 ![Capture d’écran 2022-09-02 à 10.40.32.png](https://canada1.discourse-cdn.com/shopifyforum/original/3X/3/e/3ec25b4c926f070fc2bd78a11d7d83173833a644.jpeg)

Thaaaaank sooooo much

---

<div class="post-metadata">

**Author:** ![MarinaPetrovic](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/marinapetrovic/32/132660_2.png) [@MarinaPetrovic](https://community.shopify.com/u/MarinaPetrovic)\
**Post date:** [September 2, 2022, 1:54pm UTC](https://community.shopify.com/t/shopify-cli-error-for-every-action/148323/2 "2022-09-02T13:54:53Z")

</div>

Hi @clairegll , maybe this will help:

```markup
Log out of your shopify account in the browser
Log out through shopify CLI (if not already logged out) shopify logout
Log in to {shop}.myshopify.com/admin in the browser
Then log in through shopify CLI shopify login --store {shop}.myshopify.com
You should be able to run shopify theme serve after this. If not, make sure you log out of anywhere you're logged in to shopify and try again.

```
