To view the list of available editions, open the command prompt or terminal as admin and enter
dism /online /english /Get-TargetEditions
Get your key for the version you chose here
If you are upgrading from Home to Pro, you will need to disable the Internet before performing the upgrade.
Now enter that product key with this command, replace <product_key> with the actual key.
changepk.exe /ProductKey <product_key>
Example below for Win 11 Pro
changepk.exe /ProductKey VK7JG-NPHTM-C97JM-9MPGT-3V66T
When upgrading from Home to Pro you might get an error, just do a restart.
Please note: You will have to activate the new Windows Version.