YB-STORE(1)
πΎ YB-STORE(1) β the store girlies' moment β¨
okay so bestie, welcome to yb-store β the actual manual page for the store command, aka the one that puts your little blobs on the YubiKey. it's giving "packing my emotional baggage into hardware" π and honestly? iconic.
β¨ NAME β¨
store β Store a blob on the YubiKey π
π¦ SYNOPSIS π¦
store [-n|--name] [-e|--encrypted] [-u|--unencrypted] [--no-compress]
[-h|--help] [FILES]
πΈ DESCRIPTION πΈ
so what does it do? you write one or more binary blobs to the YubiKey. that's it. that's the vibe. each blob gets its own little short name β at most 32 bytes babes, don't push it π β and when a blob with the same name already exists, it gets replaced atomically. no half-written mess, no "oops my key is corrupt now", just a clean swap. slay.
blobs are compressed before storage by default. yb literally tries both brotli (level 11) and xz (preset 9) and keeps whichever came out smaller π. and if neither algorithm actually shrinks the thing? it just stores the blob uncompressed. no drama, no wasted effort. pass --no-compress to skip compression entirely β super useful for already-compressed data like JPEG, ZIP, or existing brotli/xz archives (compressing those is giving "studying for a test you already passed" π).
blobs are also encrypted by default using AES-256-GCM, with a key derived via ECDH from the public key stored in the configured PIV slot. very main character security energy π. pass --unencrypted to skip encryption β but like, use with care, bestie. for real.
π OPTIONS π
-n,--name <NAME>β override the blob name. required when reading from stdin, and only valid with a single file. one file, one name, periodt π«Ά-e,--encryptedβ encrypt the blob. this is the default behavior anyway, but hey, sometimes you just want to say it out loud.-u,--unencryptedβ store the blob unencrypted. no cap, be careful with this one π--no-compressβ skip compression. useful for already-compressed data. (this is your "don't squeeze the zip file" flag π)-h,--helpβ print help π[FILES]β source files to store. the blob name defaults to each file's basename. if no files are given, the payload is read from stdin β which requires--name. no name, no entry, iykyk β¨
π§ EXAMPLES π§
store a file (blob name = basename):
yb store secret.key
store with an explicit name:
yb store -n mykey /path/to/key.pem
store several files at once:
yb store a.key b.key c.key
pipe from stdin:
pass show mysite | yb store --name mysite
store unencrypted (plain-text blob):
yb store --unencrypted config.toml
store without compression (e.g. already-compressed binary):
yb store --no-compress archive.tar.xz
π SEE ALSO π
yb(1), yb-fetch(1), yb-remove(1), yb-fsck(1) β go read those too, they're literally the whole friend group π
vibe check passed β β the compression + encryption defaults are doing a lot of heavy lifting for you, so likeβ¦ maybe don't turn them off without a reason? no pressure tho π
and that's the page!! brought to you by yb, version 2026-03, dated 2026-03 β go store something iconic bestie ππβ¨
π¦ where this page comes from
- nixos 26.05: yb 0.4.2
- nixpkgs unstable: yb 0.5.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms