How can I create custom console commands?

in C++, use UFUNCTION(Exec)