Examples (7)
Encrypt a file
sops -e path/to/file.json > path/to/file.enc.jsonDecrypt a file to `stdout`
sops -d path/to/file.enc.jsonUpdate the declared keys in a `sops` file
sops updatekeys path/to/file.enc.yamlRotate data keys for a `sops` file
sops -r path/to/file.enc.yamlChange the extension of the file once encrypted
sops -d --input-type json path/to/file.enc.jsonExtract keys by naming them, and array elements by numbering them
sops -d --extract '["an_array"][1]' path/to/file.enc.jsonShow the difference between two `sops` files
diff <(sops -d path/to/secret1.enc.yaml) <(sops -d path/to/secret2.enc.yaml)made by @shridhargupta | data from tldr-pages