cli-plist
v0.0.5
Published
Apple plist parser/builder in TypeScript with CLI support
Readme

plist-cli
Command-line tool for parsing and building Apple plist files.
File or stdin (plist XML)
↓
plist parse
↓
JSON output
JSON input
↓
plist build
↓
plist XML outputInstallation
npx cli-plist
# or global install
npm install -g cli-plistUsage
Parse a plist file
plist parse Info.plistParse from stdin
cat Info.plist | plist parseBuild from JSON
plist build '{"name":"John","age":30}'Disable pretty-printing
plist build '{"name":"John"}' --no-prettyCommands
plist parse [file]
Parse a plist XML file or stdin and output JSON.
Arguments:
file— Path to plist file (reads stdin if omitted)
Options:
-p, --pretty— Pretty-print JSON output (default: true)
plist build <json>
Build a plist XML string from a JSON value.
Arguments:
json— JSON value to encode as plist
Options:
--no-pretty— Disable pretty-printing
License
Apache-2.0 by Ahmad Awais built with Command Code. Inspired by the plist.js, albeit completely rewritten with TypeScript, Zod validation, and comprehensive tests.
