vault list <path_to_dir>
vault read <path_to_secret>
vault write <path_to_secret> "key1": "value1" "key2": "value2"
cat vaultsecrets.json | vault write <path_to_secret> -
Example JSON to write to vault (vaultsecrets.json):
{
"key1": "value1",
"key2": "value2"
}
or
Write directly from a file (@ notation to reference file)
vault write <path_to_secret> @vaultsecrets.json
vault read -field=<field_name_inside_secret> <path_to_secret> | base64 -D