mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 23:21:08 +02:00
50 lines
2.3 KiB
Handlebars
50 lines
2.3 KiB
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
|
|
<div class="console-ui-panel-content">
|
|
<div class="content has-bottom-margin-s">
|
|
<div class="console-close-button">
|
|
<Hds::Button
|
|
class="hds-side-nav__icon-button"
|
|
{{on "click" (action "closeConsole")}}
|
|
data-test-console-panel-close
|
|
@text="Close console"
|
|
@icon="x"
|
|
@isIconOnly={{true}}
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div class="content has-bottom-margin-l">
|
|
<p class="console-ui-panel-intro is-font-mono has-bottom-margin-s">
|
|
The Vault Web REPL provides an easy way to execute common Vault CLI commands, such as write, read, delete, and list. It
|
|
does not include KV version 2 write or put commands. For guidance, type `help`. For more detailed documentation, see
|
|
the
|
|
<Hds::Link::Inline @href={{doc-link "/vault/docs/command/web"}}>HashiCorp Developer site</Hds::Link::Inline>.
|
|
</p>
|
|
<p class="console-ui-panel-intro is-font-mono has-bottom-margin-s">Examples:</p>
|
|
<p class="console-ui-panel-intro is-font-mono">
|
|
<span aria-hidden="true">→ </span>Write secrets to kv v1: write <mount>/my-secret foo=bar</p>
|
|
<p class="console-ui-panel-intro is-font-mono">
|
|
<span aria-hidden="true">→ </span>List kv v1 secret keys: list <mount>/</p>
|
|
<p class="console-ui-panel-intro is-font-mono">
|
|
<span aria-hidden="true">→ </span>Read a kv v1 secret: read <mount>/my-secret</p>
|
|
<p class="console-ui-panel-intro is-font-mono">
|
|
<span aria-hidden="true">→ </span>Mount a kv v2 secret engine: write sys/mounts/<mount> type=kv options=version=2</p>
|
|
<p class="console-ui-panel-intro is-font-mono">
|
|
<span aria-hidden="true">→ </span>Read a kv v2 secret: kv-get <mount>/secret-path</p>
|
|
<p class="console-ui-panel-intro is-font-mono">
|
|
<span aria-hidden="true">→ </span>Read a kv v2 secret's metadata: kv-get <mount>/secret-path-metadata</p>
|
|
</div>
|
|
<Console::OutputLog @outputLog={{this.cliLog}} />
|
|
<Console::CommandInput
|
|
@isFullscreen={{this.isFullscreen}}
|
|
@isRunning={{this.isRunning}}
|
|
@value={{this.inputValue}}
|
|
@onValueUpdate={{action (mut this.inputValue)}}
|
|
@onFullscreen={{action "toggleFullscreen"}}
|
|
@onExecuteCommand={{action "executeCommand"}}
|
|
@onShiftCommand={{action "shiftCommandIndex"}}
|
|
/>
|
|
</div> |