The item ID for Compass in Subnautica is:
compass
Displays compass heading on the HUD.
The spawn code for this item is:
spawn compass
The item command will add this item to your character's inventory. The item command for Compass is:
item compass
To unlock this item, use the following command:
unlock compass
If you wish to lock this blueprint, after having unlocked it, use the following command:
lock compass