Skip to content

feat(cli): add --require-active-version to coder templates push #32004

Open

Description

@coder

Part of #31998.

coder templates create --require-active-version makes workspace builds use the template's active version (template admins are exempt). coder templates push has no equivalent flag.

What to change

  • New template: set CreateTemplateRequest.RequireActiveVersion.
  • Existing template: send UpdateTemplateMeta.RequireActiveVersion only when the user sets the flag.
  • License check required. This setting needs the Access Control entitlement. create and `edit` check it before calling the API. Reuse the shared license check from the scheduling flags.

Scope: Small (S), about 20 lines plus a test.

Created on behalf of @angrycub

Activity

  1. linear-code commented on Nov 10, 2026

    @linear-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions