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

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

6 Likes

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

3 Likes

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

1 Like

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!

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

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!

1 Like

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

1 Like