Files
coder/enterprise/cli/testdata/coder_licenses_delete_--help.golden
T
Nick Vigilante fd41ca682a feat: add JSON output to coder licenses add and delete (#30137)
`coder licenses add` and `coder licenses delete` printed only text,
while `coder licenses list` supports `-o json`.

Both now accept `-o text|json`.
`add` prints the added license in the same shape as `licenses list -o
json`, and `delete` prints `{"id": <id>}`.

**Behavior change:** Additive.
Default text output is unchanged.
The license key itself is never printed.

<details>
<summary>Decisions</summary>

- `add` applies the same `license_expires_human` claim enrichment that
`licenses list` does, so the two JSON shapes match.

</details>

Closes [CLI-16](https://linear.app/codercom/issue/CLI-16)

_This PR was generated by Coder Agents on behalf of @nickvigilante._
2026-09-30 12:35:41 -04:00

16 lines
244 B
Plaintext

coder v0.0.0-devel
USAGE:
coder licenses delete [flags] <id>
Delete license by ID
Aliases: del, rm
OPTIONS:
-o, --output text|json (default: text)
Output format.
———
Run `coder --help` for a list of global options.