Cannot run shopify login with Shopify CLI (no browser). What is the workaround?

Solved

I've installed Shopify CLI to try theme app extension. But I am working remotely from my PC to Ubuntu 18.04 dev server. When I run Shopify login, CLI gives me a URL to paste on the browser. But the redirect URI in this URL starts with 127.0.0.1. The link showed the login screen but it failed after I clicked my account.

Even I can login, I am not sure if I can scaffold a theme app extension since my app is not created with CLI. 

I understand that Shopify wants to push all themes to upgrade to OS 2.0. My app is Python / Django. Now the CLI is installed with rbenv and >= Ruby 2.7. And it requires local development. Can you give me a less opinionated choice or workaround?

My app just uploads 4 liquid files to the theme. And the liquid files are using theme sections to make customizations. 

SPO - SEO App to research keywords & edit social link preview
BYOB - Build Your Own Bundles
0 Likes
FurnaceX
Shopify Partner
31 2 26

Did you figure this out? I'm trying to do the exact same thing.  I have ubuntu VM on AWS with no browser.  Thanks!

0 Likes

This is an accepted solution.

Just use python built-in webbrowser module to visit the link. 

SPO - SEO App to research keywords & edit social link preview
BYOB - Build Your Own Bundles
0 Likes
FurnaceX
Shopify Partner
31 2 26

I ended up creating a tunnel for port 3456 using Putty:

FurnaceX_0-1632019097684.png

 

0 Likes