shopify本地开发教程

  • 文档
    地址

  • 安装Theme Kit工具

    • window版本
      1. 安装chocolatey
      2. choco install themekit
    • macOS 版本
        brew tap shopify/shopify
        brew install themekit
      
    • Linux 版本
       curl -s https://shopify.github.io/themekit/scripts/install.py | sudo python
      
  • 获取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 主题名称(自己定义)
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容