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 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 [[ https://github.com/fukuchi/libqrencode | Github page ]]
Debian wiki describes how this is done on a debian server.
[[ https://wiki.debian.org/Wireguard#A3._Import_by_reading_a_QR_code_.28most_secure_method.29 | Import_by_reading_a_QR_code ]]
also a blog that shows how he creates QR codes in Debian
[[ https://jrs-s.net/2019/07/24/importing-wireguard-configs-on-mobile/ | importing-wireguard-configs-on-mobile ]]