Commands
spin registry
Manage local template registries.
Subcommands
| Subcommand | Description |
|---|---|
add <alias> <source> | Register a git or local registry. |
list | List 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
| Flag | Description |
|---|---|
--force | Replace 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.
| Flag | Description |
|---|---|
--purge-pinned | Soft-delete pinned templates that depend on this registry. |