Netlify dev indicates 'no "command" specified'

Hi there :wave:,

When running netlify dev I get the following message:

◈ No app server detected and no “command” specified

netlify dev cli screenshot

However, in my netlify.toml file, I have specified a build command:

  publish = "_site"
  command = "npm run build"

The consequence is that when running netlify dev, it never actually executes npm run build and my site output is not generated.

Here’s a sample project


The site runs just fine on production, but I’d love to be able to put in some dev cycles locally

Any ideas as to how I can convince netlify dev that I have a local “app server” or “command”?


Hey @KyleMit,
I believe you have to specify a build command in a flag:

Could you give that a try and let us know if it works better for you?