peach defaults

Write one value into an app-group UserDefaults suite, as an app extension sharing the group would. Pair it with peach open <url> to hand the app the URL a share extension opens. A value is a string, a JSON array of strings, or text stored as Data.

terminal
peach defaults write <suite> <key> (--string <text> | --strings <json-array> | --data <text>) [options]

Options

flagdescription
--string <text>store the value as a string
--strings <json-array>store the value as an array of strings
--data <text>store the UTF-8 bytes of the text as Data
--sim <id>target a specific connected sim
--port <number>bridge port (defaults to 7668)

Examples

terminal
peach defaults write group.com.example.app ShareKey --data '{"text":"hi"}'