Tools to working with Shopify
go get github.com/baorv/shopify-cloner
Clone Shopify theme to local
shopify-cloner theme:clone -t {theme id} -a {access token} -s {shop name} -v
Get all available themes in store
shopify-cloner theme:list -a {access token} -s {shop name} -v
Create new file in internal or any where you want
package theme
import (
"github.com/baorv/shopify-cloner/utils/parser"
)
type SomeCommand struct {
Theme int `short:"t" long:"theme" description:"Theme ID you want to clone" required:"true"`
Output string `short:"o" long:"output" description:"Output zip file you want to export"`
Zip bool `short:"c" long:"compress" description:"Compress all assets to zip file"`
}
func (c *SomeCommand) Execute(args []string) error {
return nil
}
var some SomeCommand
func init() {
parser.Parser.AddCommand(
"some",
"SomeCommand description",
"Long someCommand description",
&some)
}
This project is licensed under the MIT License.