fun functions new
Create a new function
Synopsis
This command creates a function. The function definition can be provided as a json file. If omitted, the necessary fields will be asked to the user.
It will locally link the created function with the name specified. That link will refer to the context specified with the –context option, or ‘default’ if not specified.
fun functions new [name] (path/to/definition) [flags]
Options
--context string context (default "default")
-h, --help help for new
--override override existing configuration
Options inherited from parent commands
--config string config directory
SEE ALSO
- fun functions - Commands to interact with Functions API