mobimeta(1)
π mobimeta β the glow-up your ebook metadata deserves π
okay bestie, so this is mobimeta(1), from the User's Reference Manual β she's a lil command-line baddie whose whole job is β¨modifying metadataβ¨ of MOBI format ebook files. no cap.
β¨ NAME β¨
mobimeta β the utility for modifying metadata of MOBI format ebook files. that's her. that's the whole personality. π
π¦ SYNOPSIS π¦
mobimeta [-a meta=value[,meta=value,...]] [-d meta[,meta,...]]
[-s meta=value[,meta=value,...]] [-p pid] [-P serial] [-hv]
filein [fileout]
look at her go, so many little flags, it's giving options menu at a boba shop π§
πΈ DESCRIPTION πΈ
so like. this program handles .prc, .mobi, .azw, .azw3, .azw4, and some .pdb documents. she's powered by the libmobi library, which is basically her ride-or-die. π«Ά
if you invoke her with no arguments at all, she just prints the document metadata and dips. that's it. no notes. β¨
if you specify fileout, the modified document gets saved under that name. if you don't specify fileout, then the original filein gets modified in place. yeah. she will edit your original file. bestie. be aware. π
here's the full list of flags and what they do, no gatekeeping:
-a meta=value[,meta=value,...]β add (append) metadata. think of it as β¨addingβ¨ to the collection.-d meta[,meta,...]β delete metadata. she's ruthless, she's efficient, she's removing it. ποΈ-s meta=value[,meta=value,...]β set (replace) metadata. out with the old, in with the new. πmetaβ for a list of valid named meta keys, trymobimeta {-a | -d | -s} ?. and ifmetais an integer, she treats it as a numeric EXTH record key. that's expert usage territory, so like, only if you know what you're doing, queen. πvalueβ the new value that will be set for a given meta key. the fresh content. the new era. β-p pidβ set pid for decryption. lowkey mysterious but okay. π-P serialβ set device serial number for decryption. also for the decryption vibes. π-hβ show usage summary and exit. the "help me pls" button. π-vβ show version and exit. the "who even are you" button. π
π EXAMPLES π
okay so here's where it gets fun. this first one sets a new title, a new author, and deletes all publisher metadata (if any exists). iconic multi-tasking:
% mobimeta -s title="My title",author="My name" -d publisher example.mobi
this next one appends an EXTH record identified by its numeric key 204 with numeric value 201. very expert, very slay:
% mobimeta -a 204=201 example.mobi
and this one will list all the valid meta named keys for you, like a little menu of possibilities:
% mobimeta -a ?
or, in case your shell goes and expands that quotation mark before you even get a chance (rude), do this instead:
% mobimeta -a "?"
π₯ RETURN VALUES π₯
0β success! we ate. π1β error. not slay. π
π COPYRIGHT π
Copyright (C) 2014-2022 Bartek Fabiszewski.
Released under LGPL version 3 or any later (same as libmobi). periodt. π
π§ WEB SITE π§
Visit http://www.fabiszewski.net for details. go say hi. π¦
π DIAGNOSTICS π
for diagnostics, libmobi must be configured with the --enable-debug option. no debug flag, no diagnostics. that's the rule, bestie.
π SEE ALSO π
this page came to you from the Unix manual, dated February 16, 2022, and yes, the footer still says mobimeta(1) because she's the main character of this page. π
k that's the whole manpage, go forth and edit some metadata, you absolute legend πβ¨π
π¦ where this page comes from
- debian bookworm: libmobi-tools 0.11+dfsg-1 Β· LGPL-3.0-or-later
- debian trixie: libmobi-tools 0.12+dfsg-1 Β· LGPL-3.0-or-later
- ubuntu noble: libmobi-tools 0.11+dfsg-1.1build1 Β· LGPL-3.0-or-later
- ubuntu questing: libmobi-tools 0.12+dfsg-1build1
- ubuntu resolute: libmobi-tools 0.12+dfsg-1build2 Β· LGPL-3.0-or-later
- ubuntu stonking: libmobi-tools 0.12+dfsg-1build2 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms