mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-23 23:51:08 +02:00
* Update README Let contributors know that docs will now be located in UDR * Add comments to each mdx doc Comment has been added to all mdx docs that are not partials * chore: added changelog changelog check failure * wip: removed changelog * Fix content errors * Doc spacing * Update website/content/docs/deploy/kubernetes/vso/helm.mdx Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com> --------- Co-authored-by: jonathanfrappier <92055993+jonathanfrappier@users.noreply.github.com> Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com>
72 lines
2.2 KiB
Plaintext
72 lines
2.2 KiB
Plaintext
---
|
|
layout: docs
|
|
page_title: operator - Command
|
|
description: |-
|
|
The "operator" command groups subcommands for operators interacting with
|
|
Vault. Most users will not need to interact with these commands.
|
|
---
|
|
|
|
> [!IMPORTANT]
|
|
> **Documentation Update:** Product documentation, which were located in this repository under `/website`, are now located in [`hashicorp/web-unified-docs`](https://github.com/hashicorp/web-unified-docs), colocated with all other product documentation. Contributions to this content should be done in the `web-unified-docs` repo, and not this one. Changes made to `/website` content in this repo will not be reflected on the developer.hashicorp.com website.
|
|
|
|
# operator
|
|
|
|
The `operator` command groups subcommands for operators interacting with Vault.
|
|
Most users will not need to interact with these commands.
|
|
|
|
## Examples
|
|
|
|
Initialize a new Vault cluster:
|
|
|
|
```shell-session
|
|
$ vault operator init
|
|
Unseal Key 1: sP/4C/fwIDjJmHEC2bi/1Pa43uKhsUQMmiB31GRzFc0R
|
|
Unseal Key 2: kHkw2xTBelbDFIMEgEC8NVX7NDSAZ+rdgBJ/HuJwxOX+
|
|
Unseal Key 3: +1+1ZnkQDfJFHDZPRq0wjFxEuEEHxDDOQxa8JJ/AYWcb
|
|
Unseal Key 4: cewseNJTLovmFrgpyY+9Hi5OgJlJgGGCg7PZyiVdPwN0
|
|
Unseal Key 5: wyd7rMGWX5fi0k36X4e+C4myt5CoTmJsHJ0rdYT7BQcF
|
|
|
|
Initial Root Token: 6662bb4a-afd0-4b6b-faad-e237fb564568
|
|
|
|
# ...
|
|
```
|
|
|
|
Force a Vault to resign leadership in a cluster:
|
|
|
|
```shell-session
|
|
$ vault operator step-down
|
|
Success! Stepped down: https://127.0.0.1:8200
|
|
```
|
|
|
|
Rotate Vault's underlying encryption key:
|
|
|
|
```shell-session
|
|
$ vault operator rotate
|
|
Success! Rotated key
|
|
|
|
Key Term 2
|
|
Install Time 01 Jan 07 12:30 UTC
|
|
```
|
|
|
|
## Usage
|
|
|
|
```text
|
|
Usage: vault operator <subcommand> [options] [args]
|
|
|
|
# ...
|
|
|
|
Subcommands:
|
|
generate-root Generates a new root token
|
|
import Import secrets from external systems into Vault
|
|
init Initializes a server
|
|
key-status Provides information about the active encryption key
|
|
rekey Generates new unseal keys
|
|
rotate Rotates the underlying encryption key
|
|
seal Seals the Vault server
|
|
step-down Forces Vault to resign active duty
|
|
unseal Unseals the Vault server
|
|
```
|
|
|
|
For more information, examples, and usage about a subcommand, click on the name
|
|
of the subcommand in the sidebar.
|