`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._
464 B
Generated
464 B
Generated
title, description
| title | description |
|---|---|
| `coder licenses delete` | Delete license by ID |
Delete license by ID
Aliases:
- del
- rm
Usage
coder licenses delete [flags] <id>
Options
-o, --output
| Type | text|json |
| Default | text |
Output format.