Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Create custom templates

You can create custom STACKIT Functions templates, by following the structure of the Official templates.

In particular, a templates repository should contain a separate folder for each template, containing a stackit-functions.yaml file. Repository layout:

https://git-host.example/user/repository-name.git
|-- template-folder
|   |-- stackit-functions.yaml
|   |-- README.md
|   `-- ... source code
`-- ... other templates

Starting from v1.5.0 the manifest file is automatically rewritten and splitted into multiple manifests. The stackit-functions.yaml manifest file should not be used anymore as configuration won’t be picked up by the CLI.

The runtime will be used by the STACKIT Function CLI to select the correct entrypoint, as described by the Generated code reference.

Installing custom templates

To install a custom templates repository, use the template install subcommand:

sfn template install --source https://git-host.example/user/repository-name.git

Then, the sfn function create will then be able to use your the custom templates for initializing new function projects.