Export - import iPhone keyboard shortcuts as text file?
From dastrobu:
There is an unofficial command line tool, which does exactly what you want, its called shortcuts. You can install it via homebrew
brew install rodionovd/taps/shortcuts
You can list your current replacements via
shortcuts read
You can import new ones via:
shortcuts import <input.plist>
There are also these commands:
shortcuts create <shortcut> <new phrase>
shortcuts update <shortcut> <phrase>
shortcuts delete <shortcut>
Source: How to export Text replacements from the Keyboard System Preference from shell?