Shopify CLI All In One
Shopify CLI All In One
# $ npm install -g @shopify/cli@latest
# $ npm i -g @shopify/cli@latest
$ yarn global add @shopify/cli@latest
https://shopify.dev/docs/api/shopify-cli
$ shopify version
3.68.1
# $ shopify help
$ shopify -h
A CLI tool to build for the Shopify platform
VERSION
@shopify/cli/3.68.1 darwin-x64 node-v18.20.4
USAGE
$ shopify [COMMAND]
TOPICS
app Build Shopify apps.
auth Auth operations.
config Disable autocorrect. Off by default.
hydrogen Build Hydrogen storefronts.
theme Build Liquid themes.
COMMANDS
commands list all the commands
help Display help for Shopify CLI
search Starts a search on shopify.dev.
upgrade Shows details on how to upgrade Shopify CLI.
version Shopify CLI version currently installed.
Shopify themes
holy shit 💩, no
package.json
无法本地预览
$ shopify theme -h
Build Liquid themes.
USAGE
$ shopify theme COMMAND
COMMANDS
theme check Validate the theme.
theme console Shopify Liquid REPL (read-eval-print loop) tool
theme delete Delete remote themes from the connected store. This command can't be undone.
theme dev Uploads the current theme as a development theme to the connected store, then
prints theme editor and preview URLs to your terminal. While running, changes
will push to the store in real time.
theme info Displays information about your theme environment, including your current store.
Can also retrieve information about a specific theme.
theme init Clones a Git repository to use as a starting point for building a new theme.
theme language-server Start a Language Server Protocol server.
theme list Lists the themes in your store, along with their IDs and statuses.
theme open Opens the preview of your remote theme.
theme package Package your theme into a .zip file, ready to upload to the Online Store.
theme publish Set a remote theme as the live theme.
theme pull Download your remote theme files locally.
theme push Uploads your local theme files to the connected store, overwriting the remote
version if specified.
theme rename Renames an existing theme.
theme share Creates a shareable, unpublished, and new theme on your theme library with a
randomized name.
➜ e-shop-theme git:(main) $
https://shopify.dev/docs/storefronts/themes/getting-started/create
demos
$ shopify theme init
# https://github.com/Shopify/dawn.git
$ cd e-shop-theme
# ❌ A store is required
# Specify the store passing `--store={your_store_url}` or set the `SHOPIFY_FLAG_STORE` environment variable.
$ shopify theme info
# $ shopify theme dev --store {store-name}
# http://127.0.0.1:9292
# https://admin.shopify.com/store/webfullstack?ui_locales=en
$ shopify theme dev --store webfullstack
$ shopify theme push --unpublished
$ shopify theme push
$ shopify theme publish
$ shopify theme info
THEME CONFIGURATION
Store webfullstack.myshopify.com
Development Theme ID Not set
TOOLING AND SYSTEM
Shopify CLI 3.68.1 💡 Version 3.69.2 available! Run `npm install -g @shopify/cli@latest`
OS darwin-amd64
Shell /bin/zsh
Node version v18.20.4
Ruby version 2.6.10
VPN errors ???
local dev ✅
local dev ❌
$ shopify theme dev --store webfullstack
💡 Version 3.69.2 available! Run `npm install -g @shopify/cli@latest`
╭─ error ──────────────────────────────────────────────────────────────────────╮
│ │
│ request to │
│ https://webfullstack.myshopify.com/admin/api/unstable/themes.json failed, │
│ reason: Client network socket disconnected before secure TLS connection │
│ was established │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
error request to https://webfullstack.myshopify.com/admin/api/unstable/themes.json failed, reason: Client network socket disconnected before secure TLS connection was established
solutions ❓
https://github.com/Shopify/cli/issues/3225
HttpsProxyAgent
❓
https://github.com/web-fullstack/shopify-all-in-one/issues/4
code editor
https://admin.shopify.com/store/webfullstack/themes/129584955476?key=layout%2Ftheme.liquid
(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!
China 主题开发者 报价
https://www.shopify.com/partners/directory/locations/china?minPrice=&maxPrice=&sort=AVERAGE_RATING
refs
https://academy.shopify.com/customizing-themes
shopify-development-fundamentals
path
https://academy.shopify.com/path/shopify-development-fundamentals
https://academy.shopify.com/path/shopify-development-fundamentals/developing-on-shopify
https://academy.shopify.com/path/shopify-development-fundamentals/customizing-themes
https://academy.shopify.com/path/shopify-development-fundamentals/integrating-with-shopify
https://academy.shopify.com/introduction-to-shopify-liquid ✅
©xgqfrms 2012-2021
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/18501615
未经授权禁止转载,违者必究!