Since Wireguard app for iPhone and Android support reading configuration from a QR code.
Would be nice to be able to write "show wireguard wgX peer $peer-name qr-code" or similar where the QR code with configuration for the mobile devices is shown for easy scan or quick export later on when/if a web-ui with api access is created.
Fortunate there is already a package that can do this called qrencode/libqrencode Github page
Debian wiki describes how this is done on a debian server.
Import_by_reading_a_QR_code
also a blog that shows how he creates QR codes in Debian
importing-wireguard-configs-on-mobile