logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

plistutil - Convert a plist FILE between binary, XML, and JSON format

Authors

       Zach C.

       Martin Szulecki

       Nikias Bassen

Description

       plistutil allows converting a Property List file between binary, XML, and JSON format.

Examples

plistutil-itest.plist-oout.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.

       plistutil-itest.plist-oout.plist-fbin
              Same as before, but the output will always be in binary format.

       plistutil-itest.plist-fxml
              Print test.plist as XML plist, regardless of the input format.

       plistutil-itest.plist-fxml-o-
              Same as before.

       plistutil-itest.plist-fjson
              Print test.plist as JSON plist, regardless of the input format.

       cattest.plist|plistutil-fxml
              Take plist data from stdin - piped via cat - and write the output as XML to stdout.

Name

       plistutil - Convert a plist FILE between binary, XML, and JSON format

On The Web

       https://libimobiledevice.org

       https://github.com/libimobiledevice/libplist

                                                                                                    plistutil(1)

Options

-i,--infileFILE
              Input FILE to convert from. If this argument is omitted or - is passed as filename, plistutil will
              read from stdin.

       -o,--outfileFILE
              Output  FILE to convert to. If this argument is omitted or - is passed as filename, plistutil will
              write to stdout.

       -f,--format[bin|xml|json|openstep]
              Force output format, regardless of input type. This is useful if the input format  is  not  known,
              but the output format should always be in a specific format (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,--printFILE
              Print PList in human-readable format.

       -c,--compact
              JSON and OpenStep only: Print output in compact form. By  default,  the  output  will  be  pretty-
              printed.

       -s,--sort
              Sort all dictionary nodes lexicographically by key before converting to the output format.

       -h,--help
              Prints usage information.

       -d,--debug
              Enabled extended debug output.

       -v,--version
              Print version information

Synopsis

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

See Also