Skip to content

Commit

Permalink
Merge pull request #1447 from itowlson/templates-install-from-tar
Browse files Browse the repository at this point in the history
Install templates from tarball
  • Loading branch information
itowlson authored Dec 19, 2024
2 parents 38efab4 + 2b3efc7 commit aed9ef4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions content/spin/v3/managing-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ url = "https://github.com/fermyon/developer/blob/main/content/spin/v3/managing-t
- [Installing From the Spin Git Repository](#installing-from-the-spin-git-repository)
- [Installing From a Specific Branch](#installing-from-a-specific-branch)
- [Installing From a Local Directory](#installing-from-a-local-directory)
- [Installing From a Remote Tarball](#installing-from-a-remote-tarball)
- [Viewing Your Installed Templates](#viewing-your-installed-templates)
- [Uninstalling Templates](#uninstalling-templates)
- [Upgrading Templates](#upgrading-templates)
Expand Down Expand Up @@ -71,6 +72,18 @@ $ spin templates install --dir ~/dev/spin-befunge-sdk

See [Template Authoring](template-authoring) for more details on this layout.

### Installing From a Remote Tarball

To install templates from a remote tarball, run `spin templates install --tar`.

> The tarball must have a `/templates` directory at its root, _or_ have a single root directory and have a `templates` directory within that. This slightly complicated rule is so that it works correctly with a GitHub release tarball, which always has a root directory named after the release.
<!-- @selectiveCpy -->

```bash
$ spin templates install --tar https://github.com/fermyon/spin/archive/refs/tags/v9.8.7.tar.gz
```

## Viewing Your Installed Templates

To see what templates you have installed, run `spin templates list`.
Expand Down

0 comments on commit aed9ef4

Please sign in to comment.