How to create new functions in netlify
Introduction
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
parameter | Introduction |
---|---|
functions | Manage netlify functions. |
create | Create 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
Notice
If you have any questions in use, you can leave a message below, or submit issuse on github ♥