{"repo":"scriptingosx/swift-prefs","free":true,"listed":false,"github":"https://github.com/scriptingosx/swift-prefs","clone":"git clone https://github.com/scriptingosx/swift-prefs.git","description":"Some tools to work with macOS preferences/defaults/settings","language":"Swift","stars":56,"topics":["command-line-tool","configuration-profiles","defaults","macadmins","macos","plist","swift"],"license":"Apache-2.0","category":"cli-tools","readme_excerpt":"swift-prefs A selection of command line tools for working with setting/defaults/preferences on macOS. prefs This tool is inspired by Greg Neagle's fancy defaults read.py and a remake of my earlier Python tool. In the simplest use case you can just pass the app identifier: The tool will print all composited preferences keys and their type and value, with the preference domain where the value was set. The output format is: A preference domain of managed means the value is set with a configuration profile. While preference values set in .GlobalPreferences.plist in the different domains are composited into the the application defaults, they are not shown by default, since there are many of them and they will make the output fairly unreadable. If you want to see them add the --globals (or -g ) option: You can also add one or more keys after the app identifier to get just specific values: You can also add the --value option to show just the value in the output (might be useful when you want to get the composited value for another script. Known Issues - doesn't read preferences of sandboxes apps from their containers plist2profile This tool is a re-interpretation in Swift of Tim Sutton's mcxToProfile. It will convert a normal flat plist file into a custom mobileconfig/configuration profile that can be used for manual installation or with an MDM server. In the simplest form, use it like this: This will generate a file named example.settings.mobileconfig in the current working directo","default_branch":null,"files":null,"tree":[],"storefront":"/r/scriptingosx","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/scriptingosx/swift-prefs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}