Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Commit 3854e64

Browse files
authored
minor tweaks to netlify dev functions docs
1 parent a12c694 commit 3854e64

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,14 @@ See the [Redirects Documentation](https://www.netlify.com/docs/redirects/) for m
172172
173173
Netlify can also create serverless functions for you locally as part of Netlify Functions. The serverless functions can then be run by Netlify Dev in the same way that wold be when deployed to the cloud.
174174
175-
A number of function templates are available to get you started, and you can add your own utility functions to suit your own project development needs.
175+
```
176+
## list of major functionality
177+
netlify functions:list
178+
netlify functions:create
179+
netlify functions:invoke
180+
```
181+
182+
A number of function templates are available to get you started, and you can add your own utility functions to suit your own project development needs. You can also locally invoke them with test payload data.
176183
177184
**Create a new function**
178185
@@ -250,8 +257,8 @@ netlify functions:invoke --name myfunction --identity # invoke a specific functi
250257
netlify functions:invoke --name myfunction --no-identity # invoke a specific function without netlify identity headers
251258
252259
# sending payloads
253-
netlify functions:invoke myfunction --payload "{"foo": 1}"
254-
netlify functions:invoke myfunction --querystring "foo=1
260+
netlify functions:invoke myfunction --payload '{"foo": 1}'
261+
netlify functions:invoke myfunction --querystring "foo=1"
255262
netlify functions:invoke myfunction --payload "./pathTo.json"
256263
```
257264

0 commit comments

Comments
 (0)