# Spin > The universal scaffolding tool (spin) docs ## Documentation Sets - [Spin universal project scaffolder](https://spincli.pages.dev//llms-full.txt): the official documentation for spin the universal project scaffolder ## Docs - [Introduction](https://spincli.pages.dev/raw/docs/introduction.md): A language-agnostic project scaffolder. You point it at a template, it asks for the template's params, renders a project tree, and runs the template's hooks - [Getting started](https://spincli.pages.dev/raw/docs/getting-started.md): Welcome. In the next few minutes you will install spin, scaffold a project from a remote template, and learn how to work offline. - [Environment variables](https://spincli.pages.dev/raw/docs/environment-variables.md): Spin respects a small set of environment variables for paths, git behaviour, and CI detection. - [Scaffold a project](https://spincli.pages.dev/raw/docs/guide/scaffold.md): Create a new project from a template. - [Pin and manage templates](https://spincli.pages.dev/raw/docs/guide/pin.md): Pin a template locally so spin new can use it by short name and work offline. - [Update pinned templates](https://spincli.pages.dev/raw/docs/guide/updating.md): Pinned templates are local copies. Over time the upstream source changes. spin update refreshes the cache. - [Find templates](https://spincli.pages.dev/raw/docs/guide/search.md): Search registries and pinned templates without a network round-trip. - [Manage registries](https://spincli.pages.dev/raw/docs/guide/registry.md): Register, list, update, and remove template registries. - [Troubleshooting](https://spincli.pages.dev/raw/docs/guide/troubleshooting.md): Common problems and how to fix them. - [Build your first template](https://spincli.pages.dev/raw/docs/guide/create-template.md): Create a spin template from scratch. Write a manifest, add params, write template files, add hooks, test it, and publish it. - [Template anatomy](https://spincli.pages.dev/raw/docs/templates/anatomy.md): A template is a directory with a spin.toml manifest and a base/ tree. spin loads it, collects params, renders the tree, runs pre-hooks, writes the files, run... - [Template params](https://spincli.pages.dev/raw/docs/templates/params.md): Params are the questions a template asks the user. They are declared in spin.toml under [params]. - [Template rendering](https://spincli.pages.dev/raw/docs/templates/template-rendering.md): How spin processes _base/ files through Go text/template with built-in helpers, excludes, and path safety. - [Hooks](https://spincli.pages.dev/raw/docs/templates/hooks.md): Hooks are shell commands declared in spin.toml. They are rendered through text/template with the resolved param values and run via sh -c in the generated pro... - [Publish a template](https://spincli.pages.dev/raw/docs/templates/publish.md): A template is a normal directory or Git repository. Publish it by making it available at a URL or local path that others can pass to spin new or spin add. - [spin.toml](https://spincli.pages.dev/raw/docs/templates/spin-toml.md): spin.toml lives at the root of every template. It describes the template and tells spin new what questions to ask and what files to render. - [Registry anatomy](https://spincli.pages.dev/raw/docs/registries/anatomy.md): A registry is a collection of templates that spin search can read. It is a directory with registry.toml and a templates/ directory. - [Template metadata file](https://spincli.pages.dev/raw/docs/registries/template-metadata.md): Each template in a registry is described by a file under templates/.toml. - [Run a registry](https://spincli.pages.dev/raw/docs/registries/run.md): You can run a registry from any git repo or local directory that follows the registry layout. - [registry.toml](https://spincli.pages.dev/raw/docs/registries/registry-toml.md): A registry is a directory that contains a registry.toml file and a templates/ subdirectory. Registries are registered with spin registry add . - [spin new](https://spincli.pages.dev/raw/docs/commands/new.md): Scaffold a new project from a template. - [spin add](https://spincli.pages.dev/raw/docs/commands/add.md): Pin a template locally for offline use. - [spin list](https://spincli.pages.dev/raw/docs/commands/list.md): Show pinned templates. - [spin update](https://spincli.pages.dev/raw/docs/commands/update.md): Refresh the on-disk cache of a pinned template. - [spin remove](https://spincli.pages.dev/raw/docs/commands/remove.md): Remove a pinned template. - [spin search](https://spincli.pages.dev/raw/docs/commands/search.md): Search templates in registered registries and pinned templates. - [spin registry](https://spincli.pages.dev/raw/docs/commands/registry.md): Manage local template registries. - [spin init](https://spincli.pages.dev/raw/docs/commands/init.md): Scaffold a new external template directory. - [spin version](https://spincli.pages.dev/raw/docs/commands/version.md): Print the spin version.