mobimeta(1)

πŸ“¦
version 0.12 Β· 2 versions
  • 0.12 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.9 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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, try mobimeta {-a | -d | -s} ?. and if meta is 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 (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 πŸ’–βœ¨πŸŽ€