Skip to main content

Command Palette

Search for a command to run...

How to set up shopify-cli on windows

Published
β€’2 min read
How to set up shopify-cli on windows

In this article, we'll go over how to install Shopify-cli on Windows and get started building your own Shopify app.

To begin, you must first install shopify-cli. If you are installing on Windows, this may be a little tricky, so follow these steps carefully.

  • Install RubyInstaller for windows
  • Now navigate to your home dir and install shopify-cli by running
gem install shopify-cli
  • Verify that you have installed shopify-cli by running
shopify version

You should have the version number displayed like this if it is properly installed.

shopify-version.PNG

If you are here congratulations you have successfully installed shopify-cli πŸŽ‰

Now that this is done, you can start building your app.

To get started, you will need a Shopify partner account and a development store

We'll be creating our Shopify app in node in this lesson; however, Shopify also supports PHP and Rails.

Carefully follow the steps below.

  • Run this command to login
shopify login

Your browser will open, prompting you to enter your Partner dashboard username and password.

  • Start a new project by running this command
shopify app create node

This will prompt you to name your new app, select a development store where you may test it, and complete your app setup by following all of the instructions.

  • Start a local development server

If you don't already have one, you'll need to sign up for a ngrok account. Ngrok is used by Shopify to construct a secure tunnel.

Before you can start the server, you must first authenticate with ngrok. After you've set up your ngrok account, they'll send you an authtoken, which you'll use to authenticate your app with this command.

shopify app tunnel auth <token>

Please stick with me; we're almost there. Perform this final check before launching your app.

Navigate to C:/Users/..../AppData/Local/shopify/. Make a folder called ngrok, put your ngrok.exe in it, and you'll have something like... Local/shopify/ngrok/ngrok.exe and Local/shopify/ngrok.exe

As a result, your....Local/shopify folder should look like this.

folder-structure.PNG If you have all this you are free to run your app by running this command

shopify app serve

I hope your app is working and you're building by now; if you need more information, visit the Shopify docs for developers.

K

My gurl πŸ™ŒπŸ™ŒπŸ™ŒπŸ™Œ

1

More from this blog

Adejoke's Blog

12 posts