# Shopify CLI3へのログインのエラーについて

**URL:** <https://community.shopify.com/t/shopify-cli3/256523>\
**Category:** Shopify テーマ\
**Created:** [October 5, 2023, 12:38am UTC](https://community.shopify.com/t/shopify-cli3/256523 "2023-10-05T00:38:58Z")\
**Posts on this page:** 1\
**Page:** 1

## AI-generated summary

Shopify CLI 3でクライアント（開発）ストアにログインできず、VS Codeのターミナルで「shopify theme dev —store ○○○」実行時に認可エラーが発生。

エラー要旨:
- 「○○○.myshopify.com のテーマ編集権限がない」
- 「パートナーのスタッフ権限のみでは開発ストアでShopify CLIは使えない。CLI利用にはストアオーナーであるか、そのストアのスタッフアカウントが必要」
- 「オーナーはCLIログイン前に https://○○○.myshopify.com/admin から一度直接ログインして、開発ストアとShopifyログインを関連付ける必要がある」

想定される対処:
- 対象ストアで正式なスタッフとして招待され、必要権限（少なくともテーマ編集）を付与してもらう、またはオーナーとして作業する。
- オーナーであれば管理画面に一度直接ログイン後、CLIで再試行する。

状態: 解決方法の助言を求めており、現時点で確定的な解決報告はなく未解決。

<div class="post-metadata">

**Author:** ![Keiji](https://avatars.discourse-cdn.com/v4/letter/k/8797f3/32.png) [@Keiji](https://community.shopify.com/u/Keiji)\
**Post date:** [October 5, 2023, 12:38am UTC](https://community.shopify.com/t/shopify-cli3/256523/1 "2023-10-05T00:38:58Z")

</div>

こんにちは。私はshopify パートナーです。  
私はパートナーアカウントでクライアントのストアを制作しておりましたが、現在、コードを編集しようとVS CodeでShopify CLI3を利用するため、該当ストアに自身のスタッフアカウントを作成してストアにログインし、その後、VS CodeのターミナルでShopify CLI 3 でストアにログインしようとしましたが、ストアにログインができません。  
補足ですが、今までは制作したストアにはログインできていましたので、Shopify CLI 3 は正しくインストールされていると思います。  
Vs Code で Shopfiy CLI 3 のコマンド  
shopify theme dev —store ○○○  
のコマンドを入力すると以下のエラーメッセージが表示されます。  
解決方法をご教授ください。  
error message  
You are not authorized to edit themes on “[○○○.myshopify.com](http://xn--11haa.myshopify.com)”.  
You can’t use Shopify CLI with development stores if you only have Partner staff member access.  
If you want to use Shopify CLI to work on a development store, then you should be the store owner or create a staff account on the store. If you’re the store owner, then you need to log in to the store directly using the store URL at least once (for example, using "[https://○○○.myshopify.com/admin](https://xn--11haa.myshopify.com/admin) ") before you log in using Shopify CLI. Logging in to the Shopify admin directly connects the development store with your Shopify login.
