2026-08-11 11:22:55 -04:00
---
# Code generated by make gen. DO NOT EDIT.
2026-09-28 15:44:10 -04:00
title : "`coder templates pull`"
2026-08-11 11:22:55 -04:00
description : "Download the active, latest, or specified version of a template to a path."
---
2023-03-23 17:42:20 -05:00
<!-- DO NOT EDIT | GENERATED CONTENT -->
2023-10-10 10:20:31 -05:00
Download the active, latest, or specified version of a template to a path.
2023-03-23 17:42:20 -05:00
## Usage
```console
coder templates pull [flags] <name> [destination]
```
## Options
### --tar
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|-------------------|
| Type | <code>bool</code> |
2023-03-23 17:42:20 -05:00
Output the template as a tar archive to stdout.
2024-03-15 11:24:38 -05:00
### --zip
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|-------------------|
| Type | <code>bool</code> |
2024-03-15 11:24:38 -05:00
Output the template as a zip archive to stdout.
2023-10-10 10:20:31 -05:00
### --version
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|---------------------|
| Type | <code>string</code> |
2023-10-10 10:20:31 -05:00
The name of the template version to pull. Use 'active' to pull the active version, 'latest' to pull the latest version, or the name of the template version to pull.
2023-03-23 17:42:20 -05:00
### -y, --yes
2026-10-21 10:58:04 -07:00
| Property | Value |
|----------|-------------------|
| Type | <code>bool</code> |
2023-03-23 17:42:20 -05:00
2026-01-16 18:04:57 -08:00
Bypass confirmation prompts.
2024-07-01 11:04:45 -10:00
### -O, --org
2026-10-21 10:58:04 -07:00
| Property | Value |
2025-01-03 18:12:59 +05:00
|-------------|----------------------------------|
2024-07-01 11:04:45 -10:00
| Type | <code>string</code> |
| Environment | <code>$CODER_ORGANIZATION</code> |
Select which organization (uuid or name) to use.