Shopify CLI操作主题命令集合

释放双眼,带上耳机,听听看~!

第一次输入要求您与 Shopify 商店交互的命令时,将标志--store与命令一起传递并指定要与之交互的商店:

shopify theme dev --store my-store
my-store更换为你要登录的shopify地址
例如:  shopify theme dev --store shopupup.myshopify.com

 

在指定新存储之前,您指定的存储将用于以后的命令。

如果您想更改您正在与之交互的商店,请使用--store您的命令传递标志,指定您想要与之交互的新商店。

要检查您使用的是哪个商店,请运行shopify theme info

shopify theme info

输出
THEME CONFIGURATION
-----------------------
Store   my-store.myshopify.com
...

 

在帐户之间切换

指向标题为“在帐户之间切换”的部分的锚链接

如果您需要在账户之间切换,则使用以下命令注销当前账户:

shopify auth logout

 

下次您输入需要身份验证的命令时,系统会提示您登录,并可以输入一组新的凭据。

 

常用命令列表

 
Topic Command Description
theme init Clones a Git repository to your local machine to use as the starting point for building a theme.
dev Uploads the current theme to a store so you can preview it.
check Calls and runs Theme Check to analyze your theme code for errors and to ensure that it follows theme and Liquid best practices.
list Lists the themes in your store.
open Returns links that let you preview the specified theme.
pull Retrieves theme files from Shopify.
push Uploads your local theme files to Shopify, overwriting the remote version if specified.
share Uploads your theme as a new, unpublished theme in your theme library.
publish Publishes an unpublished theme from your theme library.
package Packages your local theme files into a ZIP file that can be uploaded to Shopify.
delete Deletes a theme from your store.
language-server Starts a Language Server Protocol server.
info Displays information about your theme environment.
auth logout Logs you out of your Shopify account.
config autocorrect Enables or disables command autocorrection.
none help Lists the available commands and describes what they do.
version Displays the version of Shopify CLI that you’re running.
upgrade Upgrades the @shopify/cli and @shopify/theme packages to their latest versions.
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

给TA打赏
共{{data.count}}人
人已打赏
Shopify常见问题Shopify操作说明独立站教程

Shopify网站不显示登录图标与登录入口

2023-5-30 12:39:56

Shopify操作说明独立站教程

小教程-shopify分类(Collections)如何手动排序产品

2023-6-12 0:05:47

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索