`openssl req`: a PKCS#10 certificate request and certificate generating utility

The req command primarily creates and processes certificate requests in PKCS#10 format.
It can additionally create self-signed certificates for use as root CAs for example.

openssl.org/docs/man1.1.1/man1/openssl-req.html

How to create a root certificate using openssl req?