使用shopify cli,主题部署将推送整个目录,这很慢。我更改了一些文件,只希望推送它们进行商店验证。
是否有任何主题仅将cmd部署更改的文件部署?
答案 0 :(得分:1)
没有config.yml设置
theme deploy --password=[your-api-password] --store=[your-store.myshopify.com] --themeid=[your-theme-id] --env=[environemnt-name] [path-to-file/file-name]
EXP:
theme deploy --password=AFSJASFLDJ32R424 --store=test.myshopify.com --themeid=3242435425 --env=development assets/test.min.js
使用config.yml和环境设置
EXP:部署一个文件
theme deploy --env=development assets/test.min.js
EXP:部署多个文件
theme deploy --env=development assets/test.min.js assets/test-2.min.js
config.yml示例配置
development:
password: 1232134124124adfasd32423
theme_id: "93204212432"
store: test.myshopify.com
答案 1 :(得分:0)
如果使用主题工具包,则可以仅使用上载命令。它与shopify-cli非常相似。
theme
Theme Kit is a tool kit for manipulating shopify themes
Theme Kit is a fast and cross platform tool that enables you to build shopify themes with ease.
Complete documentation is available at https://shopify.github.io/themekit/
Usage:
theme [command]
Available Commands:
bootstrap Bootstrap will create theme using Shopify Timber
configure Create a configuration file
deploy deploy files to shopify
download Download one or all of the theme files
get Get a theme and config from shopify
help Help about any command
new New will create theme using Shopify Timber
open Open the preview for your store.
remove Remove theme file(s) from shopify
replace Overwrite theme file(s)
update Update Theme kit to the newest version.
upload Upload theme file(s) to shopify
version Print the version number of Theme Kit
watch Watch directory for changes and update remote theme