feat: split cli roles edit command into create and update commands (#17121)

Closes #14239
This commit is contained in:
brettkolodny
2025-04-04 14:04:20 -04:00
committed by GitHub
parent 53af7e1b90
commit ae7afd1aa0
9 changed files with 362 additions and 78 deletions
+44
View File
@@ -0,0 +1,44 @@
<!-- DO NOT EDIT | GENERATED CONTENT -->
# organizations roles create
Create a new organization custom role
## Usage
```console
coder organizations roles create [flags] <role_name>
```
## Description
```console
- Run with an input.json file:
$ coder organization -O <organization_name> roles create --stidin < role.json
```
## Options
### -y, --yes
| | |
|------|-------------------|
| Type | <code>bool</code> |
Bypass prompts.
### --dry-run
| | |
|------|-------------------|
| Type | <code>bool</code> |
Does all the work, but does not submit the final updated role.
### --stdin
| | |
|------|-------------------|
| Type | <code>bool</code> |
Reads stdin for the json role definition to upload.