Commands

spin registry

Manage local template registries.

Subcommands

SubcommandDescription
add <alias> <source>Register a git or local registry.
listList registered registries.
update [alias]Refresh git registries.
remove <alias>Remove a registry and its cache.

spin registry add

spin registry add official https://github.com/example/spin-registry.git
spin registry add local ~/code/spin-registry
spin registry add official https://github.com/example/spin-registry.git --force
FlagDescription
--forceReplace an existing alias and wipe its cache.

spin registry list

spin registry list
spin registry list --json

Shows alias, source, kind, template count, and cache path. Use --json for machine-readable output.

spin registry update

spin registry update official
spin registry update

Git registries are fetched and reset to origin/HEAD. Local registries are skipped.

spin registry remove

spin registry remove official

Refuses if pinned templates depend on the registry unless --purge-pinned is passed.

FlagDescription
--purge-pinnedSoft-delete pinned templates that depend on this registry.