skip to Main Content

using shopify cli, theme deploy will push entire directory, which is slow. I changed a few files and only want push them to shopify.

is there any theme deploy changed files only cmd?

2

Answers


  1. If you use theme kit, you can just use upload command. It is very similar to 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
    
    Login or Signup to reply.
  2. Without config.yml setup

    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
    

    With config.yml and environment setup

    EXP: Deploy One file

    theme deploy --env=development assets/test.min.js
    

    EXP: Deploy Mutiple Files

    theme deploy --env=development assets/test.min.js assets/test-2.min.js
    

    config.yml example configurations

    development:
      password: 1232134124124adfasd32423
      theme_id: "93204212432"
      store: test.myshopify.com
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search