Move WP site from subdomain to primary domain

Is there a simple way to migrate a EE4 wordpress site (with wildcard SSL) from a subdomain to the primary domain? On the same server. I setup a site for development (staging .domain .com) and now ready to move to primary site (domain .com). I don’t see a “clean” way to do this in EE4 but wanted to ask.

What I’m looking at right now is perhaps just creating a new site in EE4 (domain .com) running wordpress and then using a wordpress plugin to perform the backup/migration.