Build a Backstage scaffolder template with fetch:template and publish:github steps

domain: backstage.io · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Define a Template entity in a YAML file with apiVersion: scaffolder.backstage.io/v1beta3 and kind: Template; populate metadata.name and spec.type.
  2. Declare spec.parameters as a list of form step objects, each containing a JSON Schema under properties to collect user inputs such as component name and repo owner.
  3. In spec.steps, add a step with id: fetch-template, action: fetch:template, and input.url pointing to a skeleton directory in a Git repository; use ${{ parameters.name }} to interpolate user inputs into the skeleton files.
  4. Add a subsequent step with action: publish:github and inputs repoUrl, defaultBranch, and description to create the new repository from the rendered skeleton.
  5. Optionally add a catalog:register step after publish to automatically register the generated catalog-info.yaml with the Backstage catalog.
  6. Register the template YAML itself in the catalog so it appears in the Create page; test end-to-end in a staging Backstage instance before sharing with developers.

Known gotchas

Related routes

Write a custom Backstage scaffolder action with createTemplateAction
backstage.io · 6 steps · unrated
Add a custom Backstage scaffolder field extension to render a cluster picker dropdown populated from a custom API endpoint
backstage.io · 5 steps · unrated
Publish Backstage TechDocs via the MkDocs integration and an external storage bucket
backstage.io · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans