This repository was archived by the owner on Jan 12, 2025. It is now read-only.
Shopify CLI requires xdg-utils (namely xdg-open) in order to authenticate (Shopify CLI v3) #632
Labels
bug
Something isn't working
Feature id and version
ghcr.io/devcontainers-contrib/features/shopify-cli:1
Devcontainer base Image
mcr.microsoft.com/devcontainers/javascript-node:1-18
What happened?
See related issue: Shopify/cli#3938
Request: Is it possible for xdg-utils to be included in the setup script?
Reasoning:
In order to authenticate with the Shopify CLI in version 3, xdg-open is called to authenticate with Shopify via the browser. However, when using the javascript-node image with the shopify-cli feature, xdg-open is unavailable.
I've managed to get it working locally with a custom Dockerfile:
And by including the Ruby feature - ghcr.io/devcontainers/features/ruby:1 - as Shopify CLI has a dependency on Ruby v2.7.5+ for theme development.
If it's useful, here is my .devcontainer/devcontainer.json file:
Relevant log output
The text was updated successfully, but these errors were encountered: