Shopify CLI
GitHub - Shopify/shopify-cli: Shopify CLI helps you build against the Shopify platform faster.
Shopify CLI for apps
Shopify Theme Kitに代わる新しいCLIツール
待望のローカル開発ができる
ホットリロード対応
【Shopify④】Shopify CLIで開発環境を構築しよう | 株式会社 エヴォワークス -EVOWORX-
install
code: sh
brew tap shopify/shopify
brew install shopify-cli
version
code:sh
shopify version
Shopify CLI core commands
code:sh
shopify help
shopify -h
shopify --help
code:sh
shopify login
shopify login --store <DOMAIN.myshopify.com>
shopify logout
Adds example data to your store for testing your app or theme’s behavior.
code:sh
shopify populate products | customers | draftorders --count <NUMBER>
code:sh
shopify store
You're currently logged into johns-apparel.myshopify.com
code:sh
shopify switch --store <DOMAIN>
Theme commands
themeのinit
Git repositoryが指定されなかった場合、Dawnのコピーが作成される
code:sh
shopify theme init NAME options
shopify theme init name -u <URL>
code:sh
shopify theme serve ROOT options
アプデ入ってここの情報は古い
認証のときにローカルサーバー立ててるのはちょっと参考にしたい
どうやって実装するんやろ
PythonでCLIからOAuth2を利用してQiitaのアクセストークンを取得してみた - Qiita
#Shopify