You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-26Lines changed: 29 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,11 +54,13 @@ Learn more about the tiers at [https://www.openfaas.com/pricing/](https://www.op
54
54
55
55
### Code samples
56
56
57
-
You can generate new functions using the `faas-cli` and built-in templates or use any binary for Windows or Linux in a container.
57
+
You can scaffold a new function using the `faas-cli new` command passing in the name of the function and the language template you want to use i.e. `faas-cli new --lang node20 stripe-webhooks`.
58
58
59
59
Official templates exist for many popular languages and are easily extensible with Dockerfiles.
60
60
61
-
* Node.js (`node12`) example:
61
+
Learn about [OpenFaaS templates in the docs](https://docs.openfaas.com/languages/overview/)
62
+
63
+
* Node.js (`node20`) example:
62
64
63
65
```js
64
66
"use strict"
@@ -76,39 +78,40 @@ Official templates exist for many popular languages and are easily extensible wi
0 commit comments