MIT License

项目介绍

workwithpact/StoreDuplicator 是一个托管在 GitHub 上的开源项目,主要使用 JavaScript 编写,采用 MIT License 许可证,目前获得 62 个 Star、16 次 Fork。

仓库全名
workwithpact/StoreDuplicator
开源许可证
MIT License
Star 数
62
Fork 数
16
未关闭 Issue
1

README 摘要

Shopify Store Duplicator This tool makes it easy to duplicate a store's content onto another, either to spin up a staging env or to simply test stuff out without risking anything in production. What it supports With this tool, you can sync/duplicate the following resources: Products (and their variants, including images, alt tags and images being tied to specific variants as well as metafields) Smart Collections…

完整内容见 GitHub 原始 README 或本页 。

常见问题

StoreDuplicator 用什么语言开发?

主要使用 JavaScript 编写,采用 MIT License 许可证,目前有 62 个 Star。

StoreDuplicator 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 StoreDuplicator 的源码?

可以直接克隆仓库:git clone https://github.com/workwithpact/StoreDuplicator.git,默认分支为 master;安装与运行步骤见仓库 README。

StoreDuplicator 最近还在维护吗?

仓库最近一次更新为 2月27日,当前有 1 个未关闭 Issue;Star 数为 62,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

This tool makes it easy to duplicate a Shopify store's content onto another, either to spin up a staging env or to simply test stuff out without risking anything in production.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
106
价值分
43
活跃状态
活跃

语言占比

JavaScript

README

Shopify Store Duplicator

This tool makes it easy to duplicate a store’s content onto another, either to spin up a staging env or to simply test stuff out without risking anything in production.

What it supports

With this tool, you can sync/duplicate the following resources:

  • Products (and their variants, including images, alt tags and images being tied to specific variants as well as metafields)
  • Smart Collections (Along with its image, filters and metafields)
  • Custom Collections (Along with its image, products (mapped using their handle) and metafields)
  • Shop-level metafields
  • Blogs (along with their metafields)
  • Articles (mapped to a blog of the same handle. Comes along with their metafields)
  • Pages (along with their metafields)

Setting it all up

You’ll first need to create 2 private apps. One needs read access on the source store, the other needs read/write on the destination store.

Here are the access copes that will be required:

  • Store content like articles, blogs, comments, pages, and redirects
  • Products, variants and collections

Then, you will need to create a .env file (copy it from .env.example) and fill it out with the right api information you will have gathered from the private apps process.

Usage

By default, simply running yarn start will validate that each store is able to be read from. It will not do anything unless specifically told to using flags.

Available flags

  • --products copies over products (and variants, images & metafields)
  • --delete-products will override pre-existing products.
  • --collections copies over collections
  • --delete-collections will override pre-existing collections.
  • --pages copies over pages (along with metafields)
  • --delete-pages will override pre-existing pages.
  • --blogs copies over blogs
  • --delete-blogs will override pre-existing articles.
  • --articles copies over articles
  • --delete-articles will override pre-existing articles.
  • --metafields copies over shop metafields
  • --delete-metafields will override pre-existing shop metafields.
  • --all will sync everything.

Examples

  • Copying only product: run yarn start --products
  • Copying only pages: run yarn start --pages
  • Copying only articles: run yarn start --articles
  • Copying products & articles: run yarn start --products --articles
  • Copying products, pages & articles: run yarn start --products --articles --pages
  • Just copy everything you can: run yarn start --all

Issues and bugs

Create a new issue, or issue a new PR on this repo if you’ve found an issue and would like it fixed.

License

MIT. Do whatever you like with this stuff ✌️.

评论

暂无评论