Fallout 4 console commands

The console is a debugging tool in the PC version of Fallout 4. It is useful for altering content while in-game, but may be used to cheat as well.

Use the backquote key (`) while in-game (Unpaused).

The backquote key shifts to tilde (~) on U.S. keyboards, and the not symbol (¬) on UK keyboards. Other keyboards with different layouts will differ, but the key is usually to the left of 1 or just under the Escape key (Esc). The key is the top left key under escape, on non-U.S. keyboards. (Example: §, ½, ö, æ or | on Scandinavian (Swedish, Danish, Norwegian etc), (ñ) on Spanish keyboards, (^) or (ö) on German keyboards, (²) on French keyboards, (\) or | on Italian keyboards, (`) on Brazilian keyboards, (ù) on Belgian (point) keyboards, (") on Turkish keyboards).

The HUD will disappear and you will get a prompt (|) in the lower left corner of the screen where you can input codes. When command entry mode is enabled, the game will pause and the camera will freeze. If the left side of the console is not visible, one may need to edit the Fallout4_Default.ini file in the installation folder. Increasing the iConsoleTextXPos variable will move the prompt further right into the field of view. Fallout 4 does not require you to turn off an Xbox/PS Controller if you are using one, to use the console. If you are using a controller, simply use your keyboard to enable the console.

Debugging and mapping

 * - Fully activates all Pip-Boy map markers, making them both visible on the map and available as fast travel destinations. Note, however, that it does not update the "locations discovered" statistic in the Pip-Boy 3000. tmm 1,0,0 should allow you to see unknown locations without fast travel.
 * - Toggles "god mode" which gives the player invincibility to damage, radiation and oxygen underwater. It also gives unlimited ammo, carrying capacity and AP (reloading does use AP with some weapons) and stops item degradation.
 * - Toggle invincibility to damage.
 * - Toggle Immortal Mode. Character will still take damage, but their health will never reach zero. No radiation invincibility, no infinity AP and ammo.
 * - Toggles clipping, which enables the player to move in any direction, including through solid objects and/or empty space. (A.K.A. "noclip"). It allows you to "fly" over an area and view it or get unstuck from a location. Make sure to click on an empty space to clear any IDs that are being used in the console for this to work, "prid" with no parameters also serves the same purpose.
 * - Toggles freefly camera. tfc 1 freezes all animations, useful for screenshots.
 * - Changes the Freefly camera movement speed. 20 is default.
 * - Toggles UI Overlay (including console, type TM again to show.)
 * - Kills all NPCs and creatures in the area.
 * - Teleports the player to the specified cell. For example, to teleport to the Pre-War Sanctuary Hills from the beginning of the game type coc PreWarSanctuaryExt01
 * - Writes console output to the specified file.
 * - Executes specified list of commands as defined by a text file (.txt)

Inventory manipulation

 * - add item to your inventory, at full health.
 * or - Lists Inventory with object IDs. Suitable for use with
 * equip item from the inventory; useful for equipping items that don't appear in Pip-Boy inventory.

NPC Spawning

 * Replace ####### with item or NPC ID to spawn it next to the player.

Stats and character manipulation

 * - Set an actor value to a specific amount, for instance strength, intelligence or , endurance, health, actionpoints for running '''atributes, and skills.
 * - Modify an actor value; the value will max out at its normal maximum value (100 for skills, 85 for resistances, 10 for S.P.E.C.I.A.L., etc.). A negative number lowers the variable.
 * - Set a value
 * - Advance one level, but receive no additional perk chart points
 * - Adds a specified perk. For a list of perks see Fallout 4 perks
 * - Change player character's gender
 * - Set level
 * - Advance a point on a specific skill branch.
 * or - Edit player characters appearance.
 * - Show game settings value.

Warnings

 * Be careful when using setscale to large numbers like 10. You may seem big and powerful, but a very small drop-off (in comparison to your size) will be fatal. Cliffs look very tiny from 50 feet up, but still kill you as if you were normal size. Additionally cells will still only load as if you were normal size, and moving through un-spawned cells can crash the game. It is suggested to use the no-clip command 'tcl' to prevent falling.
 * Refrain from using ForceAV instead of ModAV, especially if you want to revert the change later. ForceAV overrides the automatic calculation of actor values, and nothing will affect that actor value again aside from another ForceAV or a ModAV. For example, with a Carry Weight of 200, a will give the player character a carrying capacity of 5000. Getting an extra point of strength will not change that capacity, even if you ForceAV the Carry Weight back to 200 before getting the additional point of strength. On the other hand, a  will result in a carrying capacity of 5200, getting an additional point of Strength will make that increase appropriately, and a subsequent  will place the value back where it should be based on Strength.

Items & world manipulation
This is easiest if you first click on something in the world with the console open, to target it.

- Deletes the specified object ref. Useful for getting rid of objects that can't be added to the inventory.

- Set the scale of an item in game. Usually requires a save/reload for the new scaling to take place.

- Prints out the scale of the item in the console.

- Unlock doors, safes, terminals or any other locked container; you can of course also. Adding a number after lock sets the difficulty to that of the Lockpick skill. For example, lock 50 would create an Average lock, lock 0 a very easy, and lock 255 would create a lock that requires a key and so on. Unlock will not work on doors that are "locked from the other side".

- Activate an item, say a door, that is normally operated by a switch

- Similar to diable, will delete any item from the game, removing it permanently. It may disappear immediately, or it may require you to exit and re-enter the area.

- Similar to activate, but will open and close it without the player having to use it 0 = close 2 = open.

- Make the item yours. (for instance a cabinet or a bed, but if you try to make a safe or cash register and things like that yours, you will still lose Karma and there's almost no point.)

- Place an item next to the player; for many items only a of  is valid

- Move the player to a nearby item. Player needs to be within the same location cell.

- Sets the timescale, the ratio determining how fast game time moves relative to real time; the default setting is 30. For example, setting the timescale to 1 would cause one second to pass in game time for every second in real time.


 * Warning: Altering the timescale will cause the game to crash if NPCs spawned using placeleveledactoratme or movetoplayer enter into combat.

- Sets the gamehour to the entered value. Change applies only when player unpauses the game. Before making any changes to the gamehour using might be useful.