How do I configure custom template for SuperRepo using the Foundry CLI

Looking at the CLI help I see I can use the Foundry cLI config to add custom template:

foundry create --help    
Create a new project from a template.

Launches an interactive flow to select a template, name the project, choose the target directory, and optionally initialize a git repository.

The version_pin can be set in the config file or overridden with --version-pin. It is not part of the interactive flow. In non-interactive mode, uses
defaults for all prompts.

Templates come from two places: the `[[templates.sources]]` entries in your CLI config (cloned over git), and any templates published by the Foundry
stack you are logged in to (downloaded directly). Both are rendered locally in the same way.

A template repository can be laid out in three ways: - With a `template/` directory at the root: only its contents are used. - With a `templates/`
directory at the root: each immediate subdirectory is a selectable variant. If only one variant exists it is used automatically; otherwise the user
picks (or `--variant <name>` is required in non-interactive mode). - Without either: the entire repo root is used.
...

foundry config list
[templates]
sources = []
...

What is the data type the sources array expects? Is it something like:

[[templates.sources]]
name = "official-starters"
url = "git@github.com:example/community-foundry-templates.git"

Hey,

Exactly,

[[templates.sources]]
name = "official-starters"
url = "git@github.com:example/community-foundry-templates.git"

is the correct format.

The git repository this is pointing to can have the template in its root or it can have a templates folder with subfolders for the different template variants users can choose from. The foundry create flow supports replacing handlebars if the file ends in .hbs and can contain variables such as {{PROJECT_NAME}}.

Thanks for asking this question, I’ll track adding more details on this to our public documentation.

Andras