创建函数¶
安装 Knative Functions 后,您可以使用 func CLI 或 kn func 插件创建函数项目。
func create -l <language> <function-name>
示例
func create -l go hello
kn func create -l <language> <function-name>
示例
kn func create -l go hello
预期输出
Created go function in hello
有关函数 create 命令选项的更多信息,请参阅 func create 文档。