---
title: "pols template"
description: "Save sandboxes as templates and manage them"
---

<!-- Generated by scripts/reference.mjs from the pols CLI's --help. Do not edit; run `npm run reference:sync`. -->

Save sandboxes as templates and manage them

## Usage

```text
pols template [command]
```

## Subcommands

| Command | Description |
| --- | --- |
| [`pols template ls`](#pols-template-ls) | List templates |
| [`pols template rm`](#pols-template-rm) | Delete a template |
| [`pols template save`](#pols-template-save) | Save a sandbox's disk as a template (its env vars are not copied) |

## Flags

```text
-h, --help   help for template
```

## pols template ls

List templates

### Usage

```text
pols template ls [flags]
```

### Flags

```text
-h, --help   help for ls
```

## pols template rm

Delete a template

### Usage

```text
pols template rm TEMPLATE [flags]
```

### Flags

```text
-h, --help   help for rm
```

## pols template save

Save a sandbox's disk as a template (its env vars are not copied)

### Usage

```text
pols template save SANDBOX NAME [flags]
```

### Flags

```text
    --description string   what the template is for
-h, --help                 help for save
```

The [global flags](/reference/cli/#global-flags) work with this command too.
