shopify-app-cli | Shopify App CLI helps you build Shopify apps | Ecommerce library
kandi X-RAY | shopify-app-cli Summary
kandi X-RAY | shopify-app-cli Summary
Shopify App CLI helps you build Shopify apps faster. It quickly generates Node.js and Ruby on Rails apps and automates many common development tasks.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of shopify-app-cli
shopify-app-cli Key Features
shopify-app-cli Examples and Code Snippets
Community Discussions
Trending Discussions on shopify-app-cli
QUESTION
I have successfully installed Ruby in my windows 10 and also the shopify CLI in my OS but when I am trying to connect with my app using
...ANSWER
Answered 2021-Jan-27 at 18:45A similar issue discussed over the Ruby
and Jekyll
forum also suggests the same solution.
Link
QUESTION
I am on a windows 10 machine and trying to use the Shopify App CLI to create apps, but I am running into some errors.
First I installed ruby so I could use the gem command to install the Shopify App CLI, as explained here.
When running shopify version
as explained in the above documentation, I get the following output:
bash: shopify: command not found
After googling for a bit I found a solution to this problem, by running shopify.bat version
. With this command I can use the CLI.
Moving on, I tried following this tutorial to create my first Shopify App. I used shopify.bat create node
to create my app, moved into the folder and ran shopify.bat serve
to serve my app locally.
Now the following problem arises:
It starts promising by installing ngrok:
But after waiting for a bit, I get the following output (Sorry for the screenshot, I could not get it to look normal with inline code):
What I also notice is that it uses C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/shopify-cli-1.4.0/
as the path to the CLI, but when looking on Google, most people have /home/[USER]/.shopify-app-cli/
as the path to the CLI. This path does not exist on my machine.
So I would like to know why first of all the serving of the app won't work, because ngrok can't be found, and second why ~/home/user/.shopify-app-cli
does not exist.
Thanks in advance,
Mike
...ANSWER
Answered 2020-Oct-24 at 20:39I think modern Windows come with Linux now. Since the Internet runs on Linux, you might find development and following tutorials much easier if you use Linux, since all these inconveniences of Windows disappear. Unless you are already super handy with all the quirks of Windows to work around their results, it could be your ticket!
That being said, I mastered this development pattern using *nix and it remains pretty advanced to actually have a smooth workflow for both localhost and production development. Ngrok itself is painful without paying for the service and using puma-dev and puma-ngrok... I laugh when I think about how those essentials running under Windows will be for you.
QUESTION
I'm working on a Gatsby site. I have test
in my package.json
set to "test": "jest --watch --no-cache",
. Mostly, when I save, watch works with no issue. However, occasionally, perhaps with a syntax error, my watch errors, fails and exits. I'd like to fix this but don't really know what direction to head based on this error.
My Jest console output is the following:
...ANSWER
Answered 2020-Oct-18 at 15:01When running jest —watch
Jest keeps track of all files in the directory for updates via fsevents
. When an item it was tracking in the directory is removed it notices a change but is unable to reload the file no longer exists resulting in “no file or directory found error”.
When gatsby develop
starts it creates “.cache” directory–which as you would expect is subject to constant modifications during development process.
I’m not entirely certain about the exact mechanism, but Gatsby is likely removing the .bak file in the “.cache” directory and Jest is likely encountering a “file not found” error when that occurs.
SolutionConfigure Jest to ignore “.cache” directory.
ExampleQUESTION
I was trying to follow this link here to install shopify-cli on my windows 10 system: https://shopify.github.io/shopify-app-cli/getting-started/install/#rubygem-all-platforms
I installed Ruby via chocolatey:
...ANSWER
Answered 2020-Oct-09 at 20:39So the problem was that I was using Chocolatey to install Ruby and then seperately trying to install MSYS2. Instead with the help of this link: https://shopify.github.io/shopify-app-cli/getting-started/ I simply navigated to the ruby devkit download site https://rubyinstaller.org/downloads/ and downloaded from there. This ensured MSYS2 gets installed via package as well. Then I also uninstalled ruby gems and tried re-installing it again and that worked as well. Finally the command to install the ruby-cli worked:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install shopify-app-cli
Refer to Getting started with Shopify App CLI to learn how to create and manage different types of projects with Shopify App CLI.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page