文档
地址-
安装Theme Kit工具
- window版本
- 安装chocolatey
- choco install themekit
- macOS 版本
brew tap shopify/shopify brew install themekit
- Linux 版本
curl -s https://shopify.github.io/themekit/scripts/install.py | sudo python
- window版本
-
获取shopify API权限,目的是为了连接本地开发和shopify商店
图片教程 命令
说明 | 命令 |
---|---|
创建新的主题 | theme new --password=your-password --store=your-store.myshopify.com --name=theme name |
获取shopify平台所有的分支 | theme get --list -p=your-password -s=you-store.myshopify.com |
获取某一分支的代码 | theme get -p=your-password -s=you-store.myshopify.com -t=your-theme-id |
更新远程分支的代码,替换shopify上的内容 | theme deploy |
获取整体 | theme download |
获取某个文件 | theme download templates/404.liquid templates/article.liquid |
删除某个文件 | theme remove templates/404.liquid templates/article.liquid |
预览代码 | theme open --env=development |
监听代码并上传到shiopify | theme watch --notify=/tmp/theme.update |
说明 | 来源 |
---|---|
your-password | 获取秘钥时生成的password |
your-store | 店铺名称 |
theme name | 主题名称(自己定义) |