GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — func/docs/reference/func_create.md at main · stackbuilders/func

Expand file tree

/

func_create.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
82 lines (58 loc) · 2.1 KB
/

func_create.md

Copy path

File metadata and controls

82 lines (58 loc) · 2.1 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

func create

Create a function

Synopsis

NAME func create - Create a function

SYNOPSIS func create [-l|--language] [-t|--template] [-r|--repository] [-p |--path] [-c|--confirm] [-v|--verbose]

DESCRIPTION Creates a new function project.

  $ func create -l node

Creates a function in the current directory '.' which is written in the
language/runtime 'node' and handles HTTP events.

If [path] is provided, the function is initialized at that path, creating
the path if necessary.

To complete this command interactively, use --confirm (-c):
  $ func create -c

Available Language Runtimes and Templates:
  Language     Template
  --------     --------
  go           cloudevents
  go           http
  node         cloudevents
  node         http
  python       cloudevents
  python       http
  quarkus      cloudevents
  quarkus      http
  rust         cloudevents
  rust         http
  springboot   cloudevents
  springboot   http
  typescript   cloudevents
  typescript   http


To install more language runtimes and their templates see 'func repository'.

EXAMPLES o Create a Node.js function in the current directory (the default path) which handles http events (the default template). $ func create -l node

o Create a Node.js function in the directory 'myfunc'.
  $ func create -l node myfunc

o Create a Go function which handles CloudEvents in ./myfunc.
  $ func create -l go -t cloudevents myfunc
func create

Options

  -c, --confirm             Prompt to confirm options interactively ($FUNC_CONFIRM)
  -h, --help                help for create
  -l, --language string     Language Runtime (see help text for list) ($FUNC_LANGUAGE)
  -p, --path string         Path to the function project directory ($FUNC_PATH)
  -r, --repository string   URI to a Git repository containing the specified template ($FUNC_REPOSITORY)
  -t, --template string     Function template. (see help text for list) ($FUNC_TEMPLATE) (default "http")
  -v, --verbose             Print verbose logs ($FUNC_VERBOSE)

SEE ALSO

  • func - func manages Knative Functions
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.