rook(1)
π rook(1) β the secret-service tool that's literally your keepass bestie
okay so picture this: you're on the General Commands Manual page for rook(1), and it's a whole vibe. rook lets you use a KeePass v4 database as your secret stash, and honestly? iconic. let's get into it β¨
πΈ NAME πΈ
rook β a secret service tool backed by a Keepass v4 database. yes bestie, that's the whole pitch and it ate π
π¦ SYNOPSIS π¦
rook [--force/-f <bool>] [--help/-h <bool>] [--keyring/-k <bool>]
[--password <string>] [--pin <bool>] [--socket <string>] [--version/-v
<bool>]
[commands|exit|help|info|list|lock|match|open|reload|search|serve|show|status|version]
like, that's the whole menu. options first, then a command, no cap π
π DESCRIPTION π
so rook lets you use a KeePass v2 database as storage for secrets β and it's giving two whole modes, main character energy times two:
- client mode and server mode
- the server unlocks the database and stays in memory
- the client talks to the server over a socket and fetches your data
that's it, that's the architecture, and it slaps π«Ά
β¨ OPTIONS β¨
--force,-f[=bool](defaults tofalse) β purge any existing server socket first. > β οΈ heads up bestie: if there's already a server running, this will probably break it. not a vibe check you want to fail, so be careful π--help,-h[=bool](defaults tofalse) β prints usage text. the classic cry for help but make it documentation π--keyring,-k[=bool](defaults tofalse) β use the Linux kernel keyring to store the pin in the user session context. this enables (and overrides)--secure. lowkey the upgrade path, iykyk π--password[=string](defaults to"") β bestie. no. Do not use this argument. It's a horrible idea. that's a direct quote from the manpage and it fr fr means it ππ--pin[=bool](defaults tofalse) β read the secret pin from the STDIN. sneaky but clean π§--socket[=string](defaults to"") β an alternate client/server socket from the default, which lets you run multiple rook servers at once. must be a full file name, e.g./tmp/rook2.sockπ¦--version,-v[=bool](defaults tofalse) β print the version and exit. short and sweet, periodt β
π COMMANDS π
π commands
list all of the supported server commands. a whole tour of the menu, love that for us π
π exit
kill background process. bye bestie π
π help
Prints usage text. we love a self-aware icon π
π info
print database information. the β¨loreβ¨ of your DB.
π list
list entries in the database. inventory check, main character style π§Ύ
π lock
lock an open database. time to be mysterious and unavailable π
π match
find entries who have titles, urls, or autocomplete entries matching the supplied string. this is the opposite of search, in that the entry records must be substrings of the argument. yes, backwards on purpose β not me getting confused, it's literally the design π
π open
open a new database, or unlock the existing one. the password may either be prompted for, or may be supplied in a ROOK_PASSWORD environment variable. pick your fighter π«Ά
π reload
reload the database. this shouldn't be necessary since rook detects file system mod time changes and auto-refreshes, but this command can force it. the "have you tried turning it off and on again" of DB refreshing π
π search
list entries with title, URL, or tag matching a string. the normal-direction one, bestie π
π serve
start the server. the moment the server becomes the main character π
π show
show the contents of an entry. peek behind the curtain β¨
π status
report whether the DB is unlocked. a lighter call than info β the snack-sized version π
π version
print out the version and exit. same energy as --version, different door πΈ
π AUTHOR π
Sean E. Russell <ser@ser1.net> β shoutout to the legend who made this whole thing happen π
π SEE ALSO π
rook(1) rook-commands(1) rook-exit(1) rook-help(1) rook-info(1) rook-list(1) rook-lock(1) rook-match(1) rook-open(1) rook-reload(1) rook-search(1) rook-serve(1) rook-show(1) rook-status(1) rook-version(1)
like, the whole friend group fr fr π«Ά
okay that's the page!! this one came from the local source, version/date 2026-05-31, and it's the rook(1) manual β now go forth and keep your secrets secret, bestie πβ¨π
π¦ where this page comes from
- alpine 3.24: rook-doc 0.4.4-r0 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms