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
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-2025
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/18501615
未经授权禁止转载,违者必究!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· .NET10 - 预览版1新功能体验(一)
2023-10-25 How to tell whether a file is a symbolic link in shell script All In One
2023-10-25 Linux shell script function All In One
2022-10-25 Linux shell command line editor All In One
2022-10-25 Linux bash sed command All In One
2022-10-25 Perl Language 从入门到放弃 All In One
2021-10-25 微软外服 AlI In One
2020-10-25 Android 开启 WebView 页面 Chrome debug All In One