`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._
880 B
Generated
880 B
Generated
title, description
| title | description |
|---|---|
| `coder licenses add` | Add license to Coder deployment |
Add license to Coder deployment
Usage
coder licenses add [flags] [-f file | -l license]
Options
-f, --file
| Type | string |
Load license from file.
-l, --license
| Type | string |
License string.
--debug
| Type | bool |
Output license claims for debugging.
-o, --output
| Type | text|json |
| Default | text |
Output format.