EYAML(1)
β¨ EYAML β the moment has arrived π
okay bestie, so eyaml is the command line interface for the hiera eyaml backend β it lives in section 1 of the manual (general commands, the cool section, obviously). Think of it as your group chat with secrets: it makes keys, locks stuff up, unlocks stuff, and also babysits your text editor while you do it. π
π¦ SYNOPSIS
eyaml [--help] [subcommand [subcommand options]]
πΈ all subcommands
like, EVERY subcommand gets these. they're the universal besties:
--help,-hβ display help. your "wait what does this do again" button π«Ά--versionβ display program version. so you know what you're working with β¨--verbose,-vβ be more verbose. it will NOT stop talking, and honestly? we love that π¬--quiet,-qβ be less verbose. the introvert setting π€«--encrypt-method,-n METHODβ override default encryption and decryption method (default:pkcs7). don't change it unless you know, iykyk π--pkcs7-private-key -FILEβ path to private key (default:./keys/private_key.pkcs7.pem). that's YOUR secret, guard it with your life π--pkcs7-public-key -FILEβ path to public key (default:./keys/public_key.pkcs7.pem). this one's the shareable one π--pkcs7-subject -SUBJECTβ subject to use for certificate when creating keys (default:/) π
π§ subcommands, one by one
eyaml createkeys [options]β create a new key pair. baby's first keys, iconic behavior πeyaml decrypt [options]β decrypt data. the un-scrambling β¨--string STRINGβ source input STRING is provided as an argument--file,-f FILEβ source input FILE is a regular file--eyaml,-e FILEβ source input FILE is an eyaml file--stdinβ source input is taken from STDIN
eyaml edit FILEβ edit a file. yes it literally opens your editor for you, main character energy π¬eyaml encrypt [options]β the scrambling π₯--password,-pβ source input is a password entered on the terminal--eyaml,-e FILEβ source input FILE is an eyaml file--file,-f FILEβ source input FILE is a regular file--stdinβ source input is taken from STDIN--string STRINGβ source input STRING is provided as an argument--output,-oβ output format of final result (examples, block, string) (default:examples)--label,-l LABELβ apply a label to the encrypted result
eyaml recrypt [options]β recrypt an eyaml file. re-doing the thing, but make it fresh β»οΈeyaml versionβ show version information π
π DESCRIPTION
The eyaml command is a command line interface for hiera-eyaml. It is used to create keys, encrypt and decrypt data, and act as a wrapper around a text editor. That's it, that's the whole vibe: keys, secrets, editor vibes. No cap. π
π EXAMPLES
π encrypting data
$ eyaml encrypt --string 'foo bar'
Encrypts the command line argument to --string, and outputs the encrypted data on two formats, line and block. This can be included in an .eyaml file. The eyaml command expects keys to be present in the ./keys/ directory by default. So like... put your keys there or it's gonna be awkward π
βοΈ using the editor wrapper
$ eyaml edit hieradata/common.eyaml
Decrypts the file into a temporary file, and opens the file in a text editor. Values to be encrypted are wrapped in markup. When the file is saved, any changed values are encrypted. You literally just type and save and it handles the cryptography for you. slay. π
π AUTHORS
eyaml was written by Geoff Meakin, Peter Dyson, Robert Fielding, Simon Hildrew and Tom Poulton. legends, all of them, we stan π«Ά
This man page was written by Stig Sandbeck Mathisen for the Debian distribution, but may be used by others. sharing is caring bestie π
π BUGS
The file referenced in eyaml edit must exist. Like, it has to be THERE. no file, no edit. π
An error in the markup may result in eyaml edit not being able to open the file. so double-check your markup before you come for the editor, fr fr β οΈ
and that's the whole page, bestie β brought to you by the <b>Debian</b> crew, dated <b>Mar 31, 2014</b>, and honestly? still eating. go encrypt something. πβ¨
π¦ where this page comes from
- debian bookworm: hiera-eyaml 3.3.0-1 Β· MIT
- debian trixie: hiera-eyaml 4.2.0-1.1 Β· MIT
- ubuntu jammy: hiera-eyaml 3.2.2-2 Β· MIT
- ubuntu jammy: hiera-eyaml 3.2.2-2ubuntu0.1 Β· MIT
- ubuntu noble: hiera-eyaml 3.3.0-1 Β· MIT
- ubuntu questing: hiera-eyaml 4.2.0-1.1
- ubuntu resolute: hiera-eyaml 4.2.0-1.1build1 Β· MIT
- ubuntu stonking: hiera-eyaml 4.2.0-1.1build1 Β· MIT
- Copyright 2014 Stig Sandbeck Mathisen <ssm@debian.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms