KAPLA-ENCODE(1)
π NAME π
kapla-encode β the way you encode content using ERIS, bestie β¨
(also hi, this whole thing lives in the Kapla Manual, so likeβ¦ you're in the right place π )
β¨ SYNOPSIS β¨
kapla encode [OPTION]β¦ [INPUT]
Encode your content, stash the blocks, and print out the read capability. That's it, that's the vibe π¦
πΈ ARGUMENTS πΈ
INPUT(absent=-) β the path to the content you wanna encode. Pass-for stdin, easy. And if you hand it a directory? Then the directory content gets encoded using ERIS-FS. no cap π₯
π OPTIONS π
-b BLOCK_SIZE,--block-size=BLOCK_SIZE(absent=32768) β size of the blocks your content gets encoded into. Only two values are allowed, so don't get creative:1024(or the aliassmall) and32768(or the aliaslarge). periodt.-c,--null-convergenceβ use convergent encryption with the null convergence secret. yes queen, converge.--cbor=CBOR_FILEβ write blocks of encoded content to a CBOR Sequence file. If the file already exists, the blocks get appended β like, added onto the end, nothing gets yeeted π-n,--no-storeβ do not upload blocks to the store. not me skipping the upload π-s ERIS_UNIX_SOCKET,--socket=ERIS_UNIX_SOCKET(absent=$XDG_STATE_HOME/kapla/eris.sock,$HOME/.local/state/kapla/eris.sock,/var/lib/kapla/eris.sockor theERIS_UNIX_SOCKETenv) β the Unix socket where the ERIS block store is listening, iykyk.--sqlite=SQLITE_DBβ store blocks of encoded content into an SQLite database. iconic little database moment π«Ά
π COMMON OPTIONS π
--color=WHEN(absent=auto) β colorize the output, obviously πWHENmust be one ofauto,alwaysornever.--help[=FMT](default=auto) β show this help in formatFMT.FMTmust be one ofauto,pager,grofforplain. Withauto, the format ispagerorplainwhenever theTERMenv var isdumbor undefined. (so like, it reads the room π§)-q,--quietβ be quiet. takes over-vand--verbosity. shhh π€«-v,--verboseβ increase verbosity. repeatable, but more than twice does not bring more β so don't spam it thinking it'll unlock secret levels, it won't β--verbosity=LEVEL(absent=warningor theKAPLA_LOG_LEVELenv) β be more or less verbose.LEVELmust be one ofquiet,error,warning,infoordebug. takes over-v.--versionβ show version information. slay.
π₯ EXIT STATUS π₯
kapla encode exits with:
0β on success. we love a win π123β on indiscriminate errors reported on standard error.124β on command line parsing errors. oops π125β on unexpected internal errors (bugs). not the bugs π
π ENVIRONMENT π
These environment variables affect the execution of kapla encode, bestie:
ERIS_UNIX_SOCKETβ Unix socket where ERIS block store is listening.KAPLA_LOG_LEVELβ Set the log level.
π¦ EXAMPLES π¦
To encode a file and share the read capability as a QR code:
kapla encode file.txt | qrencode -t UTF8
literally so cute, go off π
β STANDARDS β
π SEE ALSO π
kapla-decode(1), kapla-serve(1)
okay that's the whole thing!! this page? Kapla 0.4.0, from the Kapla Manual, and it's the KAPLA-ENCODE(1) entry β ily, go encode something gorgeous πΈβ¨
π¦ where this page comes from
- nixpkgs unstable: ocaml5.5.1-kapla 0.4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms