The command copies the province ID of the province you currently have selected to your clipboard.
The syntax for the copyprov command is as follows:
copyprov DLC: Hearts of Darkness
Find below working examples of the copyprov command.
This is the only way you can use this command. Typing this command into the console will copy the province ID of the province that you currently have selected (clicked on) to your clipboard.