All apps/faas-cli

faas-cli

faas-cli
Runs as faas-cli|macOS, Linux, Windows|github.com

Command form

ai-draft · 8 tasks · 31 fields

Scaffold, build, deploy and invoke OpenFaaS functions. Registry login, secrets, templates and store commands are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui faas-cli

faas-cli new

Create a function

Scaffold a new function from a template in the current folder.

Create a functionExample values, fixed in this page — nothing here reaches a terminal
Basic
Function name*
string
Language / template*
string
Image prefix
string
TasksEach one presets the form for one job
New function
namelangprefix
List languages
list
ParametersOnly these flags are editable in the form
Function name
string · positional 0
Language / template
string
--langnode20python3-httpgolang-middleware
Image prefix
Registry or user prefix for the function image, for example ghcr.io/user.
string
--prefix-p
Gateway URL
Gateway URL starting with http(s)://. Defaults to the OPENFAAS_URL or http://127.0.0.1:8080.
url
--gateway-g
List available languages
boolean
--list
Append to stack file
path
--append-a
Skip template notes
boolean
--quiet-q

faas-cli up

Build, push and deploy

Run build, push and deploy for the functions in a stack file.

Build, push and deployExample values, fixed in this page — nothing here reaches a terminal
Basic
Stack file
file
Function name filter
string
TasksEach one presets the form for one job
Build, push, deploy
yamlfilter
Build and deploy locally
yamlskip_push
ParametersOnly these flags are editable in the form
Stack file
path
--yaml-f
Function name filter
Wildcard to match function names in the stack file.
string
--filter
Multi-arch publish
boolean
--publish
Platforms
Used with publish.
string
--platformslinux/amd64linux/arm64linux/amd64,linux/arm64
Skip push
boolean
--skip-push
Skip deploy
boolean
--skip-deploy
Watch and redeploy
boolean
--watch

faas-cli deploy

Deploy functions

Deploy functions from a stack file or an existing image.

Deploy functionsExample values, fixed in this page — nothing here reaches a terminal
Basic
Stack file*
file
Gateway URL
url
Namespace
string
TasksEach one presets the form for one job
Deploy from stack file
yamlgatewaynamespace
Deploy an image
imagenamegatewayenvsecret
ParametersOnly these flags are editable in the form
Stack file
path
--yaml-f
Gateway URL
Gateway URL starting with http(s)://. Defaults to the OPENFAAS_URL or http://127.0.0.1:8080.
url
--gateway-g
Namespace
string
--namespace-n
Image
Docker image to deploy (when not using a stack file).
string
--image
Function name
string
--name
Environment variables
ENVVAR=VALUE, repeatable.
string · repeatable
--env-e
Labels
LABEL=VALUE, repeatable.
string · repeatable
--label-l
Secrets
string · repeatable
--secret
Replace existing function
boolean
--replace
Skip TLS verification
boolean
--tls-no-verify

faas-cli invoke

Invoke a function

Call a deployed function; the request body is read from standard input.

Invoke a functionExample values, fixed in this page — nothing here reaches a terminal
Basic
Function name*
string
Gateway URL
url
Content type
string
Advanced
Headers
string
TasksEach one presets the form for one job
Invoke
functiongatewaycontent_typeheader
GET with query
functionmethodquery
ParametersOnly these flags are editable in the form
Function name
string · positional 0
Gateway URL
Gateway URL starting with http(s)://. Defaults to the OPENFAAS_URL or http://127.0.0.1:8080.
url
--gateway-g
Content type
string
--content-typeapplication/jsontext/plain
Headers
"KEY: VALUE", repeatable.
string · repeatable
--header-H
Query parameters
KEY=VALUE, repeatable.
string · repeatable
--query
HTTP method
string
--method-mPOSTGET
Asynchronous
boolean
--async-a
SourcesEvery flag above is checked against these
help
(Rendered from the cobra flag definitions in commands/*.go of openfaas/faas-cli) faas-cli new FUNCTION_NAME --lang=FUNCTION_LANGUAGE [--gateway=http://host:port] | --list | --append=STACK_FILE) --lang string Language or template to use -g, --gateway string Gateway URL to store in YAML stack file -p, --prefix string Set pref…
helpmaster 2026-10-27

github.com

help
(Rendered from the cobra flag definitions in commands/*.go of openfaas/faas-cli) faas-cli new FUNCTION_NAME --lang=FUNCTION_LANGUAGE [--gateway=http://host:port] | --list | --append=STACK_FILE) --lang string Language or template to use -g, --gateway string Gateway URL to store in YAML stack file -p, --prefix string Set pref…
helpmaster 2026-10-27

github.com

help
(Rendered from the cobra flag definitions in commands/*.go of openfaas/faas-cli) faas-cli new FUNCTION_NAME --lang=FUNCTION_LANGUAGE [--gateway=http://host:port] | --list | --append=STACK_FILE) --lang string Language or template to use -g, --gateway string Gateway URL to store in YAML stack file -p, --prefix string Set pref…
helpmaster 2026-10-27

github.com

help
(Rendered from the cobra flag definitions in commands/*.go of openfaas/faas-cli) faas-cli new FUNCTION_NAME --lang=FUNCTION_LANGUAGE [--gateway=http://host:port] | --list | --append=STACK_FILE) --lang string Language or template to use -g, --gateway string Gateway URL to store in YAML stack file -p, --prefix string Set pref…
helpmaster 2026-10-27

github.com

help
(Rendered from the cobra flag definitions in commands/*.go of openfaas/faas-cli) faas-cli new FUNCTION_NAME --lang=FUNCTION_LANGUAGE [--gateway=http://host:port] | --list | --append=STACK_FILE) --lang string Language or template to use -g, --gateway string Gateway URL to store in YAML stack file -p, --prefix string Set pref…
helpmaster 2026-10-27

github.com

Before it fills your prompt, Otty checks the installed faas-cli against its version. A form that does not match your version is not offered.