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:

[build]
  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

Github: https://github.com/KyleMit/netlify-dev-test
Netlify: https://netlify-dev-test-kylemit.netlify.app/

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”?

Thanks!

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?