mirror of https://github.com/knative/func.git
1.6 KiB
1.6 KiB
func templates
Templates
Synopsis
NAME func templates - list available templates
SYNOPSIS func templates [language] [--json] [-r|--repository]
DESCRIPTION List all templates available, optionally for a specific language runtime.
To specify a URI of a single, specific repository for which templates
should be displayed, use the --repository flag.
Installed repositories are by default located at ~/.func/repositories
($XDG_CONFIG_HOME/.func/repositories). This can be overridden with
$FUNC_REPOSITORIES_PATH.
To see all available language runtimes, see the 'languages' command.
EXAMPLES
o Show a list of all available templates grouped by language runtime
$ func templates
o Show a list of all templates for the Go runtime
$ func templates go
o Return a list of all template runtimes in JSON output format
$ func templates --json
o Return Go templates in a specific repository
$ func templates go --repository=https://github.com/boson-project/templates
func templates
Options
-h, --help help for templates
--json Set output to JSON format. (Env: $FUNC_JSON)
-r, --repository string URI to a specific repository to consider (Env: $FUNC_REPOSITORY)
Options inherited from parent commands
-n, --namespace string The namespace on the cluster used for remote commands. By default, the namespace func.yaml is used or the currently active namespace if not set in the configuration. (Env: $FUNC_NAMESPACE)
-v, --verbose Print verbose logs ($FUNC_VERBOSE)
SEE ALSO
- func - Serverless functions