2026-08-11 11:22:55 -04:00
|
|
|
---
|
|
|
|
|
# Code generated by make gen. DO NOT EDIT.
|
|
|
|
|
title: templates archive
|
|
|
|
|
description: "Archive unused or failed template versions from a given template(s)"
|
|
|
|
|
---
|
|
|
|
|
|
2023-10-11 09:26:22 -05:00
|
|
|
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
|
|
|
|
|
|
|
|
|
Archive unused or failed template versions from a given template(s)
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
```console
|
2025-01-03 18:12:59 +05:00
|
|
|
coder templates archive [flags] [template-name...]
|
2023-10-11 09:26:22 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Options
|
|
|
|
|
|
|
|
|
|
### -y, --yes
|
|
|
|
|
|
|
|
|
|
| | |
|
2025-01-03 18:12:59 +05:00
|
|
|
|------|-------------------|
|
2023-10-11 09:26:22 -05:00
|
|
|
| Type | <code>bool</code> |
|
|
|
|
|
|
2026-01-16 18:04:57 -08:00
|
|
|
Bypass confirmation prompts.
|
2024-03-15 11:24:38 -05:00
|
|
|
|
|
|
|
|
### --all
|
|
|
|
|
|
|
|
|
|
| | |
|
2025-01-03 18:12:59 +05:00
|
|
|
|------|-------------------|
|
2024-03-15 11:24:38 -05:00
|
|
|
| Type | <code>bool</code> |
|
|
|
|
|
|
|
|
|
|
Include all unused template versions. By default, only failed template versions are archived.
|
2024-07-01 11:04:45 -10:00
|
|
|
|
|
|
|
|
### -O, --org
|
|
|
|
|
|
|
|
|
|
| | |
|
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.
|