Fallout 4 has console commands that players can use to alter gameplay. Console commands are used by developers for testing, but Bethesda is leaving them in the game for players to use if they want.
Fallout 4 – Best Console Commands (and How to Use Them)
Here you will find all of the different console commands available for Fallout 4.
Press the tilde (~) or apostrophe (') key to open the in-game console. These keys are usually located next to your 1 key. You'll want to enter the codes exactly as they appear in the lists below, replacing everything in brackets with the appropriate ID or number.
If you want to affect a nearby character, you can always click on him or her before entering the command, and he or she will be the only one you affect.