Flags
path
-
Specifies the location where the function will be created.
-
If the path is not specified, the current directory is used.
-
If the path does not exist but is specified, it will be created.
The function name is the name of the leaf directory at path.
-
runtime
-
The function runtime language or framework, specified by
-l
. The default runtime isgo
. Available runtimes:node
,quarkus
andgo
. trigger
-
Use the
--trigger
or-t
flag to specify the function invocation context, or trigger. By default, the trigger ishttp
. To create a function for CloudEvents, use theevents
trigger. Available triggers:http
orevents
. templates
-
You can specify one or more templates for the function by using the
--templates
flag. The default templates location is/home/<user>/.config/faas/templates
.