How can I send auth details with Shopify CLI login commands?

savga
Tourist
3 0 6

Hi, I am doing pipeline integration in bitbucket to deploy a theme based on Dawn. Basically the pipeline will push the theme to the online store, however I am stuck on running

shopify store --store=myStore

because it tries to open a browser to select account to make the changes, same issue with command

shopify login --store=myStore

with themekit this was not an issue, since the updating was made via a private app and a config file.

My question is, is there a way to send the auth details on the command?, ex

shopify login --store=myStore --username=userName --password=password

or similar

use a config file like themekit?

 

any idea how to get this working?

 

thanks

 

+10 years - Shopify Developer... for hire 😉
Replies 5 (5)

buddyw
Tourist
3 0 2

we have the same problem.

is there any way to log in to Shopify CLI without user interaction?

in ThemeKit we used ENV VARs: THEMEKIT_STORE, THEMEKIT_PASSWORD

jamesss
Tourist
3 0 3

This is a big problem. How can this be achieved?

buddyw
Tourist
3 0 2

To everyone in this thread: please go to https://github.com/Shopify/shopify-cli/issues/1582 and upvote the issue at the top. The more upvotes it gets, the sooner Shopify will introduce this feature!

Screenshot 2021-10-19 at 12.16.25.png


This is the response that we got as an official Shopify Partner:

If you are looking for CLI support, then I suggest heading over to our Shopify CLI Github repo. In this case because what you are looking to do is not currently a feature of the CLI tool, it would be considered a feature request. I also recommend that once you have created a Github issue, you share this Github issue back into your forum post. This can encourage other posters to reply in the Github issue as well as follow it there. This type of extra interaction could help to cause more movement on finding a solution from our internal teams.

Raising the priority on this looks like the only way to solving this, so make sure to ask anyone whom it may concern to help out.

Let's do this!
Alex & The Team at buddy.works

stephers
Shopify Staff (Retired)
9 0 4

We're trying to collect some more information to understand what developers are trying to push in their CD pipelines - if you're interested in this feature, can you vote on this post? This'll help us with our planning for this feature. Thanks! 

To learn more visit the Shopify Help Center or the Community Blog.

Virenderk
Visitor
2 0 1

use - shopify theme dev --store={store-url}