* docs: Add links for multi grant scopes * Update website/content/docs/commands/roles/create.mdx Co-authored-by: Robin Beck <stellarsquall@users.noreply.github.com> * docs: Add link to command docs --------- Co-authored-by: Robin Beck <stellarsquall@users.noreply.github.com>
43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
---
|
|
layout: docs
|
|
page_title: roles create - Command
|
|
description: |-
|
|
The "roles create" command lets you create a new role.
|
|
---
|
|
|
|
# roles create
|
|
|
|
Command: `roles create`
|
|
|
|
The `roles create` command lets you create a new role.
|
|
|
|
## Example
|
|
|
|
This example creates a role with the name `prodops` and the description `Role for ProdOps`:
|
|
|
|
```shell-session
|
|
$ boundary roles create -name prodops -description "Role for ProdOps"
|
|
```
|
|
|
|
## Usage
|
|
|
|
<CodeBlockConfig hideClipboard>
|
|
|
|
```shell-session
|
|
$ boundary roles create [options] [args]
|
|
```
|
|
|
|
</CodeBlockConfig>
|
|
|
|
### Command options
|
|
|
|
- `-description=<string>` - The description to assign to the role.
|
|
- `-grant-scope-id=<string>` - The scope ID for any grants set on the role.
|
|
The `grant-scope-id` field is now deprecated in favor of multiple grant scope support using [add-grant-scopes](/boundary/docs/commands/roles/add-grant-scopes).
|
|
For more information, refer to [Version 0.15.0 feature deprecations and EOL](/boundary/docs/release-notes/v0_15_0#feature-deprecations-and-eol).
|
|
- `-name=<string>` - The name to assign to the role.
|
|
- `-scope-id=<string>` - The scope in which you want to create the role.
|
|
The default is `global`.
|
|
You can also specify the scope using the **BOUNDARY_SCOPE_ID** environment variable.
|
|
|
|
@include 'cmd-option-note.mdx' |