How to generate WireGuard config on Mikrotik?

I’m new to Mikrotik and just installed version 7.10.2 on a VM for testing purposes.

I’m familiar with creating WireGuard peer configurations on a Debian system using the command below, which helps me generate the configuration file for the user:

$ wg genkey | tee privatekey | wg pubkey > publickey
However, I’m uncertain about how to achieve the same on Mikrotik. I can’t seem to find a way to access the shell to run this command.

Appreciate any guidance you can provide. Thanks.

https://help.mikrotik.com/docs/display/ROS/WireGuard

https://forum.mikrotik.com/viewtopic.php?t=182340