Deploying App Extensions from Server Without Browser Access

Hi everyone,

We have our Shopify app deployed on a server, and we previously deployed the app extensions from a local machine. However, when we try to run npm run deploy from the server, we encounter an error because the Shopify CLI requires browser-based authentication — and our server environment doesn’t have a user interface or browser access.

Is there any way to deploy all app extensions directly from the server without requiring browser authentication or a graphical interface?
Or else, how can we access the browser authentication flow through the CLI?

Thanks in advance!

Hi, here’s my recommendation:
You don’t need to run npm run deploy from the server. First, make sure your deployment is done correctly. If you’re using a Remix app, ensure it’s built and deployed the same way as a standard React.js project.

Once the deployment is complete, you’ll have an access URL.
Next, go to your Dev Dashboard → Apps → Your App → Versions, and click “Create a version.”
Then, update the App URL and Redirect URLs with your deployed app’s URL.
Finally, release the new version.

Please refer this post: Workflow for Remix App hosted on fly.io