plistutil(1)

πŸ“¦
version 2.7.0+git20250820 Β· 2 versions
  • 2.7.0+git20250820 Β· alpine 3.24, arch rolling, debian trixie, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 2.2.0 Β· debian bookworm, epel 9, ubuntu jammy
, in alpine 3.24, arch rolling, debian trixie, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– plistutil β€” the manual, but make it cute πŸ’–

okay so this is plistutil(1) from the General Commands Manual section, and bestie, it's about to become your new fave little conversion tool. buckle up πŸŽ€


✨ NAME ✨

plistutil β€” Convert a plist FILE between binary, XML, and JSON format 🌈


πŸ¦‹ SYNOPSIS πŸ¦‹

plistutil [OPTIONS] [-i FILE] [-o FILE]

πŸ’… DESCRIPTION πŸ’…

plistutil lets you convert a Property List file between binary, XML, and JSON format. that's the whole vibe. it's giving ✨format-shifting icon✨


🌸 OPTIONS 🌸

  • -i, --infile FILE β€” the Input FILE you're converting from. if you skip this argument, or you pass - as the filename, plistutil will read from stdin instead. 🫢
  • -o, --outfile FILE β€” the Output FILE you're converting to. if you skip this argument, or you pass - as the filename, plistutil will write to stdout. periodt.
  • -f, --format [bin|xml|json|openstep] β€” Force output format, regardless of input type. super useful when you don't know what the input format even is, but you need the output to always be one specific thing (like xml or json). πŸ‘‘

If omitted, XML plist data will be converted to binary and vice-versa. To convert to/from JSON or OpenStep the output format needs to specified. ⚠️

  • -p, --print FILE β€” Print PList in human-readable format. it's giving readability, main character energy πŸŽ€
  • -c, --compact β€” JSON and OpenStep only: Print output in compact form. By default, the output will be pretty-printed. so like... -c is the lowkey version, no -c is the full glam πŸ’…
  • -s, --sort β€” Sort all dictionary nodes lexicographically by key before converting to the output format. organized. alphabetized. iconic. ⭐
  • -h, --help β€” Prints usage information. your little guide bestie 🧚
  • -d, --debug β€” Enabled extended debug output. yes, the manual literally says "Enabled", we're keeping it, no cap πŸ’€
  • -v, --version β€” Print version information πŸ“Œ

πŸ“ EXAMPLES πŸ“

plistutil -i test.plist -o out.plist

Convert test.plist and write to out.plist. If test.plist is in XML format, out.plist will be in binary format. If test.plist is in binary format, out.plist will be in XML format. ✨ (yes bestie, it flip-flops, that's the point)

plistutil -i test.plist -o out.plist -f bin

Same as before, but the output will always be in binary format. no surprises, just bin 🫢

plistutil -i test.plist -f xml

Print test.plist as XML plist, regardless of the input format. 🌈

plistutil -i test.plist -f xml -o -

Same as before. (- means stdout, iykyk)

plistutil -i test.plist -f json

Print test.plist as JSON plist, regardless of the input format. πŸ¦‹

cat test.plist |plistutil -f xml

Take plist data from stdin β€” piped via cat β€” and write the output as XML to stdout. pipes? we love pipes. πŸ’–


πŸ‘‘ AUTHORS πŸ‘‘

the geniuses behind this:

  • Zach C.
  • Martin Szulecki
  • Nikias Bassen

🌐 ON THE WEB 🌐


aaaand that's the whole page, bestie πŸ’œ this manual is literally signed plistutil(1) at the bottom and lives in the General Commands Manual section β€” that's the footer, that's the vibe, we're done here. go convert something slayfully πŸŽ€βœ¨