Creating a function

After you have installed Knative Functions, you can create a function project by using the func CLI or the kn func plugin:

func CLIkn func plugin

  1. func create -l <language> <function-name>

Example:

  1. func create -l go hello
  1. kn func create -l <language> <function-name>

Example:

  1. kn func create -l go hello

Expected output

  1. Created go function in hello

For more information about options for function create commands, see the func create documentation.