volant vault
Encrypt, decrypt, view, create, edit and rekey vault files, with the messages and exit codes of ansible-vault.
volant vault does what ansible-vault encrypt, decrypt, view, create, edit, rekey and encrypt_string do, on the same files, with the same messages and exit codes. Encrypting and viewing files, creating, editing and rekeying files and encrypting strings have the details.
volant vault encrypt [FILE...] [--output FILE] [--encrypt-vault-id ID] [OPTIONS]volant vault decrypt [FILE...] [--output FILE] [OPTIONS]volant vault view [FILE...] [OPTIONS]volant vault create [--encrypt-vault-id ID] [--skip-tty-check] FILE [OPTIONS]volant vault edit FILE... [OPTIONS]volant vault rekey FILE... [--new-vault-password-file FILE | --new-vault-id ID] [OPTIONS]volant vault encrypt_string [-n NAME]... [-p] [--show-input] [--stdin-name NAME] [--output FILE] [--encrypt-vault-id ID] [OPTIONS] [STRING...]OPTIONS are --vault-id, --vault-password-file (also --vault-pass-file), -J/--ask-vault-pass and -v, described under Vault. With none of them, and no vault_password_file setting, the command asks for the password.
Write the result there and leave the source alone. - is standard output. Only one input file is accepted with it, or the exit code is 5.
The vault id encrypt, create and rekey use. encrypt and create require it when more than one --vault-id is given. edit accepts it and ignores it: a file keeps its own label.
create opens the editor even when standard output is not a terminal. Without it, create refuses with exit code 5.
For encrypt_string: the variable name of the string at the same place. Repeatable.
For encrypt_string: encrypt standard input, under this variable name.
For encrypt_string: ask for a name and the string on the terminal. The string is not echoed unless --show-input is given.
The new secret for rekey. Give one of them. With neither, rekey asks for it.