Cannot use --host on Shopify CLI

Is anyone else having issues using --host tag with “npm run dev – --host”?

This is the command I ran:

npm run dev -- --host

And this is the response:

> ****@2025.1.2 dev
> shopify hydrogen dev --codegen

WARNING: NPM scripts require an extra `--` separator to pass the flags.  Example: `npm run dev -- --reset` 

Normally this works, but this morning I tried and it won’t host. Just gives me a warning to use an extra --

1 Like

Hey @Drew :waving_hand: - if you’re still seeing this issue pop up, could you try running this in your CLI:

shopify hydrogen dev --codegen --host --verbose

Just want to see if running both commands resolves the issue, and if not, I can take a look at the verbose logs if you can share them in this thread to see if we can narrow down the issue.