← 返回命令列表

Linux command

elasticsearch-keystore 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Create keystore

elasticsearch-keystore create

Create a password-protected keystore

elasticsearch-keystore create -p

List settings

elasticsearch-keystore list

Add setting

elasticsearch-keystore add [setting.name]

Add setting from stdin

echo "[value]" | elasticsearch-keystore add --stdin [setting.name]

Add setting from file

elasticsearch-keystore add-file [setting.name] [file]

Show a setting value

elasticsearch-keystore show [setting.name]

Remove setting

elasticsearch-keystore remove [setting.name]

Upgrade keystore

elasticsearch-keystore upgrade

说明

elasticsearch-keystore manages the secure settings keystore for Elasticsearch. Stores sensitive configuration like passwords and API keys in encrypted form.

参数

--stdin
Read setting value from stdin (used with add).
-f, --force
Overwrite existing setting without prompting.
-p
Prompt for password when creating keystore.
-o _file_
Output file (used with show).
-h, --help
Display help.
-s, --silent
Show minimal output.
-v, --verbose
Show verbose output.

FAQ

What is the elasticsearch-keystore command used for?

elasticsearch-keystore manages the secure settings keystore for Elasticsearch. Stores sensitive configuration like passwords and API keys in encrypted form.

How do I run a basic elasticsearch-keystore example?

Run `elasticsearch-keystore create` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --stdin do in elasticsearch-keystore?

Read setting value from stdin (used with add).