Skip to content

feat(cli): add --agents-allowed to coder templates push #32005

Open

Description

@coder

Part of #31998.

coder templates create --agents-allowed controls whether Coder Agents can create workspaces from the template. coder templates push has no equivalent flag.

This gap is smaller than the others. The server already defaults to `true` when the field isn't sent, so push only falls short when someone wants to opt a template out of Coder Agents.

What to change

  • New template: set CreateTemplateRequest.AgentsAllowed, but only when the user sets the flag.
  • Existing template: send UpdateTemplateMeta.AgentsAllowed only when the user sets the flag.
  • No license needed.

Scope: Extra small (XS), about 15 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