require-netlify-build-command
Require an explicit Netlify command = ... build setting.
Targeted pattern scopeâ
command = ...entries innetlify.toml.
What this rule reportsâ
This rule reports Netlify configs that omit an explicit build command.
Why this rule existsâ
When build commands live only in dashboard settings, deployment behavior can
drift from repository review history. Keeping command = ... in netlify.toml
makes CI behavior reproducible and auditable.
â Incorrectâ
[build]
publish = "dist"
â Correctâ
[build]
command = "npm run build"
publish = "dist"
When not to use itâ
Disable this rule if the repository intentionally ships prebuilt artifacts and never runs a Netlify build command.
Rule catalog ID: R079