Spain will be interesting game if you want fun with civil war. After some years there are problems and your country will split to two parts and after that you must win Spain back.
Country tag for Spain is:
SPR
If you want play for Spain HOI4 you could use tag command:
tag SPR
To annex Spain in HOI4 you could use annex command:
annex SPR
To delete all Spain units you could use deleteallunits command:
deleteallunits SPR
To add interests on Spain you could use add_interest command:
add_interest SPR
To remove interests on Spain you could use remove_interest command:
remove_interest SPR
To start occupation on Spain you could use occupationpaint command:
occupationpaint SPR
More country tags for HOI4 or more cheats for Hearts of Iron IV