Commands

spin init

Scaffold a new external template directory.

Usage

spin init <name>
FlagDescription
--dirParent directory to create the template in (default: current dir).

Examples

spin init my-cli-template
spin init my-template --dir ./templates

Output

Creates:

<name>/
  spin.toml
  _base/
    file.txt.tmpl
  README.md

Edit spin.toml and _base/ to build your template. Test it with spin new <project> ./<name> --dry-run.