peopledoc/vault-cli

Move secret

Closed this issue · 2 comments

vault mv, recursive.

  • Only takes 2 args
  • If the 2nd argument is an existing secret, fail
  • vault mv path1 path2 will result in:
    • path1 will be recursively read
    • the read value(s) will be written in path2/{basename(path1)}
    • path1 will be recursively deleted

Still unsure whether vault mv a b should move a to b or to b/a, and whether trailing slash would help or what.

mv a b moves a to b