How to use the Shopify CLI for Building Themes
HTML-код
- Опубликовано: 3 окт 2024
- Shopify CLI helps you build Shopify apps. It quickly generates Node.js, Ruby on Rails, and PHP apps, app extensions, Shopify Scripts (beta), and Shopify themes. You can also use it for Shopify themes and when automating many common development tasks.
Shopify CLI accelerates your theme development process with the following features. Safely preview, test, and share changes to themes using development themes. Hot reload CSS and section changes when previewing a theme. Initialize a new theme using Dawn as a starting point. Populate test data for your theme, including products, customers, and draft orders, and a ton more!
Jump Sections!
Intro to Theme Development: 00:25
Connecting the Shopify CLI to a Live Store: 02:20
Generating a Development Theme: 10:32
Video Specific Links
Install the Shopify CLI - bit.ly/3IKPVS2
Build Shopify Themes - shopify.dev/th...
Join the Shopify community
Twitter - bit.ly/2ZG1pV8
Discord - bit.ly/3kgNnjW
Github - bit.ly/3GKDSn4
Community Forums - bit.ly/3nHbTfa - Наука
Liam you are my favorite shopify dev instructor, you break things down in a very accessible way. Hope to see more from you
I am pretty new to shopify, i worked on Shopware before but this is much much better. I enjoy the react like bundling of styling, variables and html within sections. And the cli is extremely good work! Thank you for the cli and for this easy to go through tutorial!
Thank you Liam. Wonderful video from the shopify devs team.
Wonderful video. Very helpful. Love the way you take time to explain and speak slowly. Thank you.
Awesome. Very helpful tutorial. Thank you, Liam.
This was a great video to get me going. Don't get me wrong, and I usually don't do this... but playing this video at 1.5x speed actually made it easier to understand. Haha. But either way, thank you. Amazing effort !
heads up, you might need to use shopify theme dev instead of shopify theme serve if you're using CLI3. And thanks for this video, very helpful!
Hi Liam thanks for the video. Can you do a video on the Shopify Github Integration which includes version control strategies for repos with build pipelines?
@@shopifydevs try to include the merchant perspective of this, as repo|account transfer and code management are too often afterthoughts resulting in an inability to access version history.
A note for the login command with CLI 3... from the website "You don't need to log in explicitly. If you aren't logged in, then you're prompted to log in when you run a command that requires authentication."
There is no "login" command anymore
Oh no is this what I'm getting into, Shopify changing their API every year?
same :(
I cant pull the theme. Terminal says that I am not logged in as the owner. WTF? I am logged in to the development store in the browser as the owner!
nice dev vid
I love you man you helped me so much °°
Hi thanks for the video. I would like to see some extensions building setup life. Just how the process should go
Hi Emmanuel - thanks for watching :) We're working on more theme related videos, exploring workflow and building theme components - make sure you're subscribed to find out when they are released!
7/2/2022 - if you ever receive an error message in the terminal stating " x No store found. Please run shopify login -- store Store to login to a specific store" use the command line at 3:47. This will reset the connection without losing data. Reason: I keep getting the error message when trying to run shopify theme serve in the terminal in visual studio code. Hope this helped
Hello Liam great video. Could you do a Windows version, as I have followed the docs and still running into trouble setting up CLI for Building themes. Many thanks.
I keep getting an error in my console when I try to pull or serve a theme.... I login successfully, I have ruby 3.1.0 installed... I have the latest version of shopify cli installed... but I keep getting "unexpected error "
thanks bro
What about the data you add through Customize?
How to push these changes to the live store?
Liam?
I need this as well ..
@@L4ttys shopify theme push should also upload the settings.json file so that should take care of updated settings.
@@billyfairbank Unfortunately it does not. It really should, but any JSON changes done on the customizer don't push with the files coming from local.
Apparently that have changed it this week…I have yet to test the update.
I am on Windows and I keep getting errors.
I can't join the discord group. the message says that the invitation has expired.
Hi ! I have this message from my terminal : Your environment Ruby version, 2.6.3, is outside of the range supported by the CLI, 2.6.6..
I don't know if you managed to find an answer but I suppose you're probably using a mac right? Mac's come with ruby installed by default in order to run some of its scripts and that version of ruby is a bit old. I think homebrew comes with the most recently installed version of ruby? You're probably going to have to change the default so that when you use shopify commands it doesn't look at the old version of ruby (which you shouldn't update lest some scripts stop working on your computer)
We can use hydrogen for building flexible themes
For sure Bhargava - Hydrogen is a new option for building storefronts, stay tuned for new content specific to Hydrogen!
Hi Liam, how would you handle if you made a code change on the shopify theme customize templates or files from browser? So would you "pull" that change down from shopify? Or is it that once you start from your local repo you can only make changes to the theme from your local and push up to shopify but not the reverse?
What was the answer to this?
nice
😎
Everyone after the new online editor update(downgrade)