Move secret
Closed this issue · 2 comments
ewjoachim commented
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
ewjoachim commented
Still unsure whether vault mv a b
should move a
to b
or to b/a
, and whether trailing slash would help or what.
ewjoachim commented
mv a b
moves a
to b