2023-09-12 11:37:31 -07:00
|
|
|
---
|
|
|
|
|
layout: docs
|
|
|
|
|
page_title: scopes list-keys - Command
|
2024-12-17 14:13:18 -05:00
|
|
|
description: >-
|
|
|
|
|
The "scopes list-keys" command lists the available keys within a scope or resource.
|
2023-09-12 11:37:31 -07:00
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# scopes list-keys
|
|
|
|
|
|
|
|
|
|
Command: `boundary scopes list-keys`
|
|
|
|
|
|
|
|
|
|
The `boundary scopes list-keys` command lets you list the keys within a given scope or resource.
|
|
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
|
|
This example lists all keys within the scope `s_1234567890`:
|
|
|
|
|
|
|
|
|
|
```shell-session
|
|
|
|
|
$ boundary scopes list-keys -scope-id s_1234567890
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
<CodeBlockConfig hideClipboard>
|
|
|
|
|
|
|
|
|
|
```shell-session
|
|
|
|
|
$ boundary scopes list-keys [args]
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
</CodeBlockConfig>
|
|
|
|
|
|
|
|
|
|
### Command options
|
|
|
|
|
|
|
|
|
|
- `-scope-id=<string>` - The ID of the enclosing scope from which to list the keys.
|
|
|
|
|
|
|
|
|
|
@include 'cmd-option-note.mdx'
|