Set up a Local Development Environment for Serverless Functions Using Netlify

Share this video with your friends

Send Tweet

Netlify makes developing serverless functions easy with the netlify-cli (ntl for short). You'll be able to build and test functions locally as well as publish your functions from the CLI.

We will install netlify-cli globally and create a netlify.toml file that will configure where the CLI should look to run functions that we define, in our case functions/. When the application is served up, Netlify runs functions under /.netlify/functions/.

Adam
Adam
~ 3 years ago

Preferred non global installation of netlify would be:

npm install netlify -D
npx ntl dev