2020-09-16 14:40:03 +01:00
|
|
|
# plutil
|
|
|
|
|
|
|
|
> View, convert, validate, or edit property list ("plist") files.
|
2024-01-31 10:20:27 +00:00
|
|
|
> More information: <https://keith.github.io/xcode-man-pages/plutil.1.html>.
|
2020-09-16 14:40:03 +01:00
|
|
|
|
|
|
|
- Display the contents of one or more plist files in human-readable format:
|
|
|
|
|
|
|
|
`plutil -p {{file1.plist file2.plist ...}}`
|
|
|
|
|
|
|
|
- Convert one or more plist files to XML format, overwriting the original files in-place:
|
|
|
|
|
|
|
|
`plutil -convert xml1 {{file1.plist file2.plist ...}}`
|
|
|
|
|
|
|
|
- Convert one or more plist files to binary format, overwriting the original files in-place:
|
|
|
|
|
|
|
|
`plutil -convert binary1 {{file1.plist file2.plist ...}}`
|
|
|
|
|
|
|
|
- Convert a plist file to a different format, writing to a new file:
|
|
|
|
|
|
|
|
`plutil -convert {{xml1|binary1|json|swift|objc}} {{path/to/file.plist}} -o {{path/to/new_file.plist}}`
|
|
|
|
|
2022-12-04 07:53:34 +00:00
|
|
|
- Convert a plist file to a different format, writing to `stdout`:
|
2020-09-16 14:40:03 +01:00
|
|
|
|
|
|
|
`plutil -convert {{xml1|binary1|json|swift|objc}} {{path/to/file.plist}} -o -`
|