Command Build - 8eecf0d2/netlify-local GitHub Wiki
The build command will parse a netlify.toml and then attempt to execute the build.command property.
By parsing the netlify.toml file the build command is able to evaluate which environment variables should be set and will prepend them to the command.
Usage
Typically you can run the build command without any arguments and it should be able to operate correctly.
netlify-local build
To configure the build command you can use the following relevant options.
Future
In the distant future it would be great to spin up a VM with Netlify's build image locally and execute commands within that context as suggested by @jayvdb.