`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._
16 lines
244 B
Plaintext
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.
|