Skip to content

Command Build

Brod edited this page Dec 13, 2018 · 3 revisions

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.

Clone this wiki locally