CLI not downloading files

When trying to do a theme pull to pull down content, I’m having issues where the CLI isn’t pulling down files, specifically templates currently. I’m noticing it seems to not be pulling alternative template. so for example I have collection.champagne-magnum.json in my theme in Shopify but when trying to pull down with the following command, it isn’t pulling.

shopify theme pull --only templates/*.json

That doesn’t work, I’ve also tried the following and it still doesn’t work. So is this a bug in the CLI?

shopify theme pull --only templates/**/*.json

This is potentially very problematic as I use it in Github Actions and to pull down the latest content before doing a push. And if it isn’t able to pull down all the data its going to end up deleting it when it does a push. And I can’t use --nodelete because I’d end up leaving old asset files in there (they get rebuilt).

And just to be clear, I’m even trying to run this locally to pull files down on the command line but it isn’t working.

1 Like

Not sure if its related to this issue →

Any chance this can get some attention? Its a huge blocker and breaking my pipeline.

I posted a similar issue on Github too.

Hey Luke!

Connecting with our devs on this - will update here asap!

Thank you Liam! :pray:

Let me know if any more information is required.

Hi Luke,

Saw that you found a solution in partner slack, but also posting here that using the following format with quotes should work:

shopify theme pull --only "templates/*.json"

1 Like

I’m running into this issue but it only seems to be affecting one site I’m working on. Other sites pull down just fine.

Also it happens whether I use the --only flag or not. The templates/*.json just doesn’t pull down.

And the theme pull runs pretty fast so it feels like it’s bypassing something.

Hey man, did you try wrapping templates/*.json with quotes?

Yeah - turns out templates are in the .shopifyignore file, which I actually didn’t even know existed until today.