Title: feat(cli): add `--dormancy-auto-deletion` to `coder templates push` · Issue #32003 · coder/coder · GitHub
Open Graph Title: feat(cli): add `--dormancy-auto-deletion` to `coder templates push` · Issue #32003 · coder/coder
X Title: feat(cli): add `--dormancy-auto-deletion` to `coder templates push` · Issue #32003 · coder/coder
Description: Part of #31998. coder templates create --dormancy-auto-deletion sets how long a workspace can stay dormant before it is deleted ("Dormancy Auto-Deletion" in the UI). coder templates push has no equivalent flag. What to change New templat...
Open Graph Description: Part of #31998. coder templates create --dormancy-auto-deletion sets how long a workspace can stay dormant before it is deleted ("Dormancy Auto-Deletion" in the UI). coder templates push has no equ...
X Description: Part of #31998. coder templates create --dormancy-auto-deletion sets how long a workspace can stay dormant before it is deleted ("Dormancy Auto-Deletion" in the UI). coder templates push ...
Opengraph URL: https://github.com/coder/coder/issues/32003
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(cli): add `--dormancy-auto-deletion` to `coder templates push`","articleBody":"Part of #31998.\n\n`coder templates create --dormancy-auto-deletion` sets how long a workspace can stay dormant before it is deleted (\"Dormancy Auto-Deletion\" in the UI). `coder templates push` has no equivalent flag.\n\n**What to change**\n- New template: set `CreateTemplateRequest.TimeTilDormantAutoDeleteMillis`.\n- Existing template: send `UpdateTemplateMeta.TimeTilDormantAutoDeleteMillis` only when the user sets the flag.\n- **License check required.** This setting needs the Advanced Template Scheduling entitlement. On unlicensed (AGPL) deployments, the server [keeps the old value without returning an error](https://github.com/coder/coder/blob/e6a795b4c3b00a5c1e576137f3540e9a9fdbbe76/coderd/schedule/template.go#L227-L236), so `push` would look like it worked when it didn't. Check entitlements first, the same way [\\`create\\`](https://github.com/coder/coder/blob/e6a795b4c3b00a5c1e576137f3540e9a9fdbbe76/cli/templatecreate.go#L50-L71) and [\\`edit\\`](https://github.com/coder/coder/blob/e6a795b4c3b00a5c1e576137f3540e9a9fdbbe76/cli/templateedit.go#L63-L75) do. `--failure-ttl`, `--dormancy-threshold` and `--dormancy-auto-deletion` should share one check.\n\n**Scope:** Small (S), about 20 lines plus a test. Add another 20 to 30 lines for whichever of the three adds the shared license check first.\n\nCreated on behalf of @angrycub\n","author":{"url":"https://github.com/apps/coder","@type":"Person","name":"coder"},"datePublished":"2026-11-10T16:36:03Z","url":"https://github.com/coder/coder/issues/32003"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1434efae-1da6-e8d1-0d9f-952afc89bb01 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B444:16EC4E:FC17E:15C95E:6B042F13 |
| html-safe-nonce | b964505c16b36c4bbe5da2fc7668b1dff84279880cc1ba910bfb5237a56d1073 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDQ0OjE2RUM0RTpGQzE3RToxNUM5NUU6NkIwNDJGMTMiLCJ2aXNpdG9yX2lkIjoiNTcxNzI5NDQwMTMyMDEzNjQ2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ceb4a6a120223b350e64087162944e3fc65e9fb47c912709d38be2f4556dcdef |
| hovercard-subject-tag | issue:6311274722 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/32003/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b011608f2d19be324c4f749825e10707ce7fb8509cb785ae61294b398e5cd38a/coder/coder/issues/32003 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b011608f2d19be324c4f749825e10707ce7fb8509cb785ae61294b398e5cd38a/coder/coder/issues/32003 |
| og:image:alt | Part of #31998. coder templates create --dormancy-auto-deletion sets how long a workspace can stay dormant before it is deleted ("Dormancy Auto-Deletion" in the UI). coder templates push has no equ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | coder[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width