1 **IMPORTANT**: To use enterprise policies on macOS, you must set the `EnterprisePoliciesEnabled` policy.
3 An example plist file with all options is available here:
5 https://github.com/mozilla/policy-templates/blob/master/mac/org.mozilla.firefox.plist
7 If you want to set specific options from the command line, we also provide flattened shortcuts to any item that is nested in the plist file.
9 For example, this policy:
14 "URL": "http://example.com/"
19 which would be set in the plist file like this:
24 <string>http://example.com</string>
27 Correctly writing the nested value with the `defaults` command can be hard, so you can flatten the keys by separating them with `__`, like this:
29 sudo defaults write /Library/Preferences/org.mozilla.firefox Homepage__URL -string "http://example.com"
31 Before any command line policies will work, you need to enable policies like this:
33 sudo defaults write /Library/Preferences/org.mozilla.firefox EnterprisePoliciesEnabled -bool TRUE
35 If you want to set user specific policies, use ~/Library without sudo:
37 defaults write ~/Library/Preferences/org.mozilla.firefox EnterprisePoliciesEnabled -bool TRUE
38 defaults write ~/Library/Preferences/org.mozilla.firefox Homepage__URL -string "http://example.com"