Forrest logo
back to context overview

sops

List of commands for sops:

  • sops:tldr:130f2 sops: Extract keys by naming them, and array elements by numbering them.
    $ sops -d --extract '["an_array"][1]' ${path-to-myfile-enc-json}
    try on your machine
    explain this command
  • sops:tldr:21bc0 sops: Show the difference between two sops files.
    $ diff <(sops -d ${path-to-secret1-enc-yaml}) <(sops -d ${path-to-secret2-enc-yaml})
    try on your machine
    explain this command
  • sops:tldr:65a80 sops: Change the extension of the file once encrypted.
    $ sops -d --input-type json ${path-to-myfile-enc-json}
    try on your machine
    explain this command
  • sops:tldr:934ed sops: Rotate data keys for a sops file.
    $ sops -r ${path-to-myfile-enc-yaml}
    try on your machine
    explain this command
  • sops:tldr:d64ff sops: Encrypt a file.
    $ sops -e ${path-to-myfile-json} > ${path-to-myfile-enc-json}
    try on your machine
    explain this command
  • sops:tldr:edd0f sops: Decrypt a file to the standard output.
    $ sops -d ${path-to-myfile-enc-json}
    try on your machine
    explain this command
back to context overview