Files
coder/docs/reference/cli/licenses
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
..