Skip to content

CLI: coder tokens create/list/update flags #19855

Description

@ThomasK33

Description

  • Add --scope <name> (repeatable) and --allow <resource_spec> flags to coder tokens create.
  • Display scopes and allow_list in coder tokens list and coder tokens view.

Key files/areas

  • cli/tokens.go and related command files.

Acceptance criteria

  • Manual tests demonstrate creating a narrowly scoped key via CLI and that it cannot perform out-of-scope operations.
  • Help text documents examples (e.g., --scope workspace:read --allow workspace:<uuid>).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions