How to create new functions in netlify


In netlify, how to create a new serverless function

This tutorial teaches you how to create a function

Command Line

Create a test function

netlify function:create test

Parameter Description

functionsManage netlify functions.
createCreate a new function locally.

operation result

? Select the type of function you'd like to create Serverless function (Node/Go)
? Select the language of your function JavaScript
? Pick a template javascript-hello-world
◈ Creating function test
◈ Created D:\code\test\netlify\functions\test\test.js

Important reminder

You can choose different templates according to your needs


If you have any questions in use, you can leave a message below, or submit issuse on github ♥