themekit: "theme new" fails: "src is empty"

What happened

Running theme new --password=[your-password] --store=[your-store.myshopify.com] (with my details) failed:

James$ theme new --password=####### --store=#####.myshopify.com [#####.myshopify.com] creating new theme "Timber-latest" from https://github.com/Shopify/Timber/archive/v2.2.2.zip src is empty

What I expected to happen

A new template based on Timber to be created in my store, and downloaded to my local folder.

Steps to reproduce

  1. Create private app
  2. Use new app password in theme new --password=[your-password] --store=[your-store.myshopify.com]
  3. shrug and instead download existing theme and find success

My Environment

OS (including version): macOS 10.13.6 (17G65) (High Sierra) Themekit version: ThemeKit 0.8.0 darwin/amd64 (installed via Homebrew) Ignore Files(if any): None that I know of

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 31 (17 by maintainers)

Most upvoted comments

Okay everyone I have merged changes to the new command, You can try it out by running theme update --version=v1.0.0-pre

It will:

  • create an empty theme on shopify
  • generate files locally (It will not overwrite files so if you run theme new in an existing theme, you will be able to easily duplicate a theme.
  • upload those files to shopify to make your new theme valid.
  • create/update the config

If there are no surprises in how this works, I will close this issue and you can open new issues for bugs, and changes in the command or theme template.

Hey @tanema, I can confirm it works after updating to 1.0.0-pre and adding the new --name parameter. Thanks for your work!

@tanema Sounds good to me, let me know if u need any help/contribution with any of this as i’m a huge advocate of ThemeKit over Slate 😃

Version 1 has now been deployed! Thanks for all your help!

You can download an archive of timber (if that is what you want to start with) and create it on the online store with the “Upload theme” button screen shot 2018-09-18 at 11 14 28 am

I know that is annoying and I apologize for that. I hope to have a solution soon.

Don’t rush on my account… I installed Timber manually onto the site and pulled it down with Theme. Just thought I’d report it! loving local editing. Thank you!