Shopify CLI does not work correctly when using AWS Cloud 9

Authentication link is generated when the following CLI commands are entered in AWS Cloud 9 IDE.

• Shopify theme login

• Shopify theme serve

• Shopify theme share

Response provides instruction to open the link in the browser. After copy/pasting said link, the Shopify login page displays and lists all available stores/creds. Upon selecting the store/creds, the page reloads with a message that indicates a connection cannot be made to 127.0.0.1

When I check my logged in status afterwards, the response in AWS terminal indicates that I am indeed logged in.

The major issue is not being able to preview or share the Shopify dev store when using the AWS Cloud 9 IDE. Although, CLI indicates logged in status, it does not respond with links to http://127.0.0.1:9292.

1 Like

Link generated from terminal in Cloud9

When link is entered into browser this is the response message

When account is selected, the browser reloads and shows this response message

This is the solution that worked for me.

https://blog.klaudsol.com/how-to-run-shopify-cli-in-aws-cloud-9/

** These are additional details that may be helpful.

After executing the recommended command in the second terminal window, tab back to the initial terminal window where the ‘serve/share’ shopify commands were previously executed and you should see the rest of the full output - including the desired ‘server/share’ URLs.