# Shopify CLIにログインできません

**URL:** <https://community.shopify.com/t/shopify-cli/365719>\
**Category:** 技術的なQ＆A\
**Created:** [October 11, 2024, 11:00pm UTC](https://community.shopify.com/t/shopify-cli/365719 "2024-10-11T23:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

## AI-generated summary

Shopify CLIで開発ストアにログインしようとすると「You are not authorized to edit themes on [store]」というエラーが発生する問題が報告されています。

**状況:**
- `shopify theme dev --store example.myshopify.com` コマンド実行時にエラー発生
- ブラウザからのログインは成功し、「デバイスでShopify CLIへのログインに成功しました」と表示される
- 管理画面へのアクセスも可能

**解決方法:**
別のユーザーから、同様の問題を経験した際にShopifyコミュニティの回答で解決できたとの情報が提供されました。

**結果:**
質問者は提供されたURLを参考にした結果、以下のコマンドが正常に実行できるようになりました:
- `shopify theme dev`
- `shopify theme pull`

問題は解決済みです。

<div class="post-metadata">

**Author:** ![harue-konno](https://avatars.discourse-cdn.com/v4/letter/h/c68b51/32.png) [@harue-konno](https://community.shopify.com/u/harue-konno)\
**Post date:** [October 11, 2024, 11:00pm UTC](https://community.shopify.com/t/shopify-cli/365719/1 "2024-10-11T23:00:00Z")

</div>

お世話になっております。

以下のようなコマンドで開発ストアにアクセスしようとすると添付のエラーが発生し、アクセスできません。

shopify theme dev --store [example.myshopify.com](http://example.myshopify.com)

 ![haruekonno_1-1728687454692.png](https://canada1.discourse-cdn.com/shopifyforum/original/3X/b/8/b8311d281a02391417ca1f7b5b0d7dba2f3171fc.png)

ただ、ブラウザからのログインは可能で「デバイスでShopify CLIへのログインに成功しました」と表示されます。

以下のようなURLで管理画面にオーナーアカウントでもログインが可能です。

[https://example.myshopify.com/admin](https://example.myshopify.com/admin)

## 以下の情報を参考までに記載させていただきます。

shopify version  
3.68.1

echo $SHELL  
/bin/zsh

## node -v v22.9.0

どうぞよろしくお願いいたします。

---

<div class="post-metadata">

**Author:** ![wugk\_1](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/wugk_1/32/314785_2.png) [@wugk\_1](https://community.shopify.com/u/wugk_1)\
**Post date:** [October 12, 2024, 9:24am UTC](https://community.shopify.com/t/shopify-cli/365719/2 "2024-10-12T09:24:23Z")

</div>

こんにちは！

私も同じエラーが発生したことがありますが、↓のコミュニティの回答で解決しました。  
[https://community.shopify.com/topic/2668149](https://community.shopify.com/topic/2668149)

ご参考までに！

---

<div class="post-metadata">

**Author:** ![harukono](https://avatars.discourse-cdn.com/v4/letter/h/439d5e/32.png) [@harukono](https://community.shopify.com/u/harukono)\
**Post date:** [October 13, 2024, 7:30am UTC](https://community.shopify.com/t/shopify-cli/365719/3 "2024-10-13T07:30:01Z")

</div>

はじめまして！

親切にご教授いただき、ありがとうございます。

いただいたURLのように、 shopify theme dev --store [example.myshopify.com](http://example.myshopify.com) でerrorメッセージが出力されても"Logged in."と表示されれば以下のコマンドの実行が正常に可能でした。

shopify theme pull  
shopify theme dev

勉強になりました。  
ありがとうございました！
