func/docs/reference/func_languages.md

64 lines
1.6 KiB
Markdown

## func languages
List available function language runtimes
### Synopsis
NAME
func languages - list available language runtimes.
SYNOPSIS
func languages [--json] [-r|--repository]
DESCRIPTION
List the language runtimes that are currently available.
This includes embedded (included) language runtimes as well as any installed
via the 'repositories add' command.
To specify a URI of a single, specific repository for which languages
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 templates available for a given language, see the 'templates' command.
EXAMPLES
o Show a list of all available language runtimes
$ func languages
o Return a list of all language runtimes in JSON
$ func languages --json
o Return language runtimes in a specific repository
$ func languages --repository=https://github.com/boson-project/templates
```
func languages
```
### Options
```
-h, --help help for languages
--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](func.md) - Serverless functions