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. It cannot be used in the console versions.

In order to access the console, you will need to use the key appropriate for your language (as shown in the list of console keys).

The HUD will disappear and you will get a prompt (--- |) in the lower left corner of the screen where you can input commands. While the console is open, 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 turning 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.

''Note: The console is not case-sensitive. While commands listed here contain capitalization for better readability, it doesn't matter how you input them: E.g., or  will all work.'' Also, you can cause the console to re-type the last command line entered for you by pressing the up-arrow.

Debugging and mapping

 * – Searches for item IDs, perk names, and even other commands. Use PageUp and PageDown keys or keyboard equivalents to scroll through the console.
 * matchstring: The search term(s).
 * filter: Integer from 0 to 4.
 * 0 – List all results.
 * 1 – List functions.
 * 2 – List settings.
 * 3 – List globals.
 * 4 – List other forms (requires form type, see below for common examples).
 * form type: 4 character form type identifier (required only for filter=4, otherwise ignored), e.g.:
 * NPC_ – NPCs (Underscore to fill 4 character requirement).
 * ARMO – Armor and clothing.
 * WEAP – Weapons.
 * QUST – Quests.
 * CELL – Cells.
 * OMOD – Item mods.
 * MISC – Miscellaneous items.
 * FACT – Factions.
 * PERK - Perks
 * FURN - Furniture (not Workshop/Settlement compatible)
 * Example: – This will list everything - item IDs, perk names, and commands - with "Leather" in the name.
 * Example: – If your search term contains a space, surround it in quotation marks.
 * Example: – Lists all armors with "raider" in their name.
 * Example: – Lists all NPCs with "gunner con" in their name, like "Gunner Conscripts".
 * or – Clears the console log.
 * Note: While the command is accepted, it does not clear the console as intended.
 * or
 * – Enables all locations as discovered to your Pip-Boy with fast travel (Does not update the "locations discovered" statistic in the Pip-Boy 3000).
 * – Disables all map markers.
 * – Adds all map markers as undiscovered without fast travel.
 * or – Gives the player invincibility to damage, radiation and oxygen underwater. It also gives unlimited ammo and clip, carrying capacity and AP (reloading does use AP with some weapons). Rad-Away and stimpaks do not work while tgm is active, but Power armor fusion cores will still drain, however can be recharged by using the jetpack. In addition, it provides unlimited resources for building items at settlements.
 * or – Character will still take damage, but their health will never reach zero. No radiation invincibility, no infinite AP or ammo.
 * Warning: This will irreversibly screw up your character should you encounter a kill animation (e.g. Deathclaw evisceration) which can lead to your limbs or head being replaced by gibs causing permanent crippling debuffs (perception or agility at 0), inability to equip gear for the affected slots and all your character's dialogue being skipped (in case of a mauled head). While the visual effects can be solved by entering/exiting power armor, the permanent 0 for SPECIAL stats and your mute player character are impossible to restore and force you to reload a previous save.
 * or – 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,  with no parameters also serves the same purpose.
 * Note: You will still be unable to pass outside the invisible walls at the boundaries of the map.
 * or – Puts the game in a frozen state, even when leaving the console. Useful in combination with tfc and tm to line up perfect screenshots. Type again to resume the game.
 * or – The angle of the game camera's horizontal Field Of View settings in degrees. Higher values make more of the world around you fit on screen, but also distort the image more.
 * or - Sets the default of 70 degrees.
 * - Sets the Third person camera to 90 degrees, and the first person camera back to 70. If you are in first person mode, this can make it seem as if the setting was ignored.
 * or – Decouples the camera from the character, allowing you to move it independently in 3rd person view (limited in range to extent of current uGridsToLoad cells setting)
 * – Additionally freezes all animations, useful for screenshots.
 * or – Changes the Freefly camera movement speed. 20 is default.
 * or – Toggles UI Overlay (including console, type TM again to show.)
 * – Takes a screenshot without removing any HUD elements. Screenshot is stored in the root Fallout4.exe directory named "ScreenShot#.png". Use in conjunction with tm to make the console and HUD invisible for a better screenshot.
 * or – Enable/Disable/Edit the rim lighting that is used on character models. Character Light can also be applied to other models that currently do not use it. It can also be removed from models.
 * or – Enable/Disable/Edit God-Ray
 * or – Teleports the player to the specified cell's center.
 * – Teleports to the pre-war version of Sanctuary Hills from the intro.
 * – Teleports to the Red Rocket gas station between Sanctuary Hills and Concord.
 * or – Writes console output to the specified file.
 * Note: While the command is accepted, no file or contents are ever generated.
 * or – Executes specified list of commands as defined by a text file (.txt).
 * or – Toggles grass display.
 * or – Toggles Trijuicing. [Unknown]
 * or – Toggles distant LOD display.
 * or – Toggles sky display.
 * or – Toggles water display. Useful when exploring underwater regions. It time-outs in a few seconds so you have to reenter the command. It also deactivates when you move into another cell.
 * or – Toggles wire frame mode.
 * or – "Fast quit", immediately closes the game.
 * or – Removes current blood splatter, dust from explosions and similar screen effects.
 * or – Creates a save file with the given name.
 * or – Loads the entered save file.
 * or – Sets multiplier on in-game time. For example, 1.0 is standard time, 0.5 is slow mo, and 0.25 is even slower.
 * Warning: Can break quite a few things. Safe values are 0 to 25. Above 50 drops framerate and higher crashes the game.

Quests

 * – Moves the quest in your quest log to the indicated quest stage. Recommended command for moving past bugged sections of quests rather than forcing the entire quest to become completed. This command can only set the quest to a further stage; it cannot return you to a stage you have already completed.
 * – Returns the quest's current stage number.
 * – Show Quest Target: Generates a list of current quest targets. Can also be used to find Quest IDs.
 * – Completes the given quest.
 * – Resets the given quest. DANGER : this command can STOP a quest, with no way to move forward on that quest
 * – Fails the given quest.
 * or – Shows all current quest objectives. If called with no parameters, it will return all quests, completed or otherwise.
 * – Completes all current objectives for the given quest.
 * – Complete All Quest Stages: finishes every quest, granting you all quest items and quest related achievements. Very buggy and may cause the game to crash.
 * or – Teleports the player to the questtarget.
 * or – Used to display all the stages of a quest.
 * or - Show variables for a quest by its ID
 * - Start all quests.

Inventory manipulation

 * – Add any item to your inventory. Use the "help" command to find the base ID.
 * Flag: Appears to be useless. Experiment with inserting 1000 combat armor pieces lead to receiving of approximately 300 of each possible prefix regardless of prefix used. Armor and weapon insertion appears to be random.
 * Example: to add every shipment item. The command is not case-sensitive. If the ID begins with 0's, they can be omitted ("6907a" will work fine in the above example). If the amount field is left blank the game will default to 1.
 * Warning: Unlike in previous games (such as Skyrim), negative values are no longer accepted (you can no longer use negative numbers to use this command like "removeitem"), and it will cause your game to crash if you try.
 * – Remove any item from your inventory.
 * or – Lists Inventory with object IDs.
 * – Equip an item from the inventory. Useful for equipping items that don't appear in Pip-Boy inventory.
 * – Unequip inaccessible items (e.g. Pip-Boy).
 * – Unequips all items from an NPC.
 * Unequips all items from currently selected NPC. (Open Console, click NPC, type "unequipall")
 * – Opens any NPC's Inventory as if they were a container. Equipped apparel does not show.
 * – Forces the NPC to drop a specified amount of an item from their inventory.
 * – Adds the specified amount of an item to an NPC's inventory.

NPC Manipulation

 * – Kills the target (unless essential).
 * – Resurrects NPC.
 * Warning: Be aware that NPCs with crippled limbs/head can spawn without them and look glitchy. Disable and enable the NPC after the resurrect command should fix this. If the NPC is killed after resurrecting them, they may also fail to ragdoll on their second death.
 * – Resets some NPCs.
 * Note: This causes randomly generated NPCs and random encounter NPCs (like a patrolling minuteman, raiders attacking a settlement, or a named travelling trader) to vanish completely from the area. This can be used without a "resurrect" command.
 * It fixes the error from above command by refreshing their model.
 * Using this command on a power armor frame will return the frame to its original location and replace all current armor pieces with a random assortment of leveled armor pieces (though the model won't change until entry).
 * Using this command on a random settler will "reroll" the settler, allowing for an alternate appearance or gender.
 * – Kills all NPCs and creatures in the area except for companions and "essential" NPCs that are too important to die. They will instead slump down until healed with a stimpak.
 * – Toggles the AI on an NPC. This basically freezes them until toggled again.
 * – With no selected target it will toggle the AI globally.
 * or – Toggles all AI combat routines.
 * – With no selected target it will toggle the combat AI globally.
 * – Toggles AI detection: Disables AI from detecting anything. Including other NPCs, creatures and the player character.
 * – Changes the sex of the NPC. Please note that this does not always come out comely.
 * Warning: Only use this on disposable NPCs. This will mess up NPCs essential to quests, but it can be remedied by restarting the game and loading a previous save.
 * – Allows an NPC to be permanently killed. Click on a an NPC then enter the command for it to work. Use the resurrect command to revive them.
 * – Allows the NPC to be permanently killed.
 * – Sets them to be unkillable.
 * – Returns 0 or 1 depending on whether the target is non-essential or essential.
 * – Get Companion Affinity Level (Events usually triggered at 250, 500, 750, 1000 with 1000 being max, unless in a relationship with a companion which maxes at 1100)
 * – Sets Companion Affinity Level to an absolute value.
 * – Modifies Companion Affinity Level by a relative value.
 * – Resets AI.
 * .moveto player - Moves npc with ref id to player
 * or – Allows you to control selected AI.
 * Note: Does not (automatically) remove control of your previous character. As such all commands like moving forward will be sent to both controlled targets. Toggle to remove control from the player character.

Factions

 * – Adds target to faction, needs to be used with a prefix or target, e.g to add yourself to the player faction. 0=friend, 1=ally.
 * – Removes target from faction, needs to be used with a prefix or target
 * – Removes the target from all factions. Be aware that this will also remove the player character from the "player faction" if used on them.
 * – Makes two factions friendly with each other. 0=friend, 1=ally
 * – Makes two factions enemies with each other. 0=neutral, 1=enemy

Stats and character manipulation

 * or – Prints a report of the current value of a given variable to the console. See list of character variables in this section for examples of what can be used here.
 * or – Sets actor values to a given amount (S.P.E.C.I.A.L., skills, experience, resistances, action points, health, etc). Using setav will affect the perk chart and unlock new perks for the player to select from.
 * Example: (default)
 * or – Modify an actor value. S.P.E.C.I.A.L. set using "modav" will change in the Pip Boy but will not affect the Perk chart - use "setav" for this instead. The value will max out at its normal maximum value. A negative number lowers the variable.
 * Example
 * Note: This will provide you with however much experience you enter as the amount. You will receive all levels gained after one level bar fills allowing for perk points to be spent.  However, you'll need to allow the bar to fill out all the experience gained; if you enter a second amount before the first is done you'll have to wait for the first amount to finish. Therefore, using this command with too much of amounts experience at once (such as exceed "400,000"), is not advisable.
 * or – Force a value.
 * Note: It is recommended to use ModAV instead of ForceAV, 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.  Also,  will add or subtract experience from your XP pool. Adding experience such that the player advances more than one level will only give one perk point, rather than one perk point per level. Subtracting experience will not reduce the player level. It is recommended to only add sufficient experience to advance one level at a time or not exceed 400000 xp point.
 * Using will yield your current XP pool, and using  (where #### represents a value you want to have) will result in adding the appropriate number of levels AND perk points. (example...when  is used it will result in a number, for this we'll say 1000. Now I want to add 1000 to it I will use  this will add the number of levels adequate for a 1000 XP gain, and will add all the perk points for the levels gained.
 * – Adds a specific perk and its rank. For a list of perks see Fallout 4 perks.
 * Note: This command does not add preceding or succeeding ranks within a perk - it only adds one perk rank. For example, if you want to be a Master Locksmith (rank 4/4), you must also add (or have already learned) Locksmith perk ranks 1/4, 2/4, and 3/4.
 * – Removes a specified perk.
 * Note: For some reason this does not seem to work for the V.A.N.S. perk.
 * - Change player character's sex.
 * – Set level. Note that this cannot be used to level your character down.
 * – Advance a point on a specific skill branch.
 * or – Edit target's appearance.
 * Example: – Edit player character (RefID 14).
 * Warning: Do not modify non-humans.
 * – Bring up the menu to change name and assign SPECIAL points.
 * – Show game settings value.
 * – Refills health bar, leaves radiation sickness.
 * – Allows you to set the value for your jump. The higher the number, the higher the jump. Be careful as jumping too high will cause fall damage.
 * Example: (default)
 * – Move to the NPC or item.
 * .moveto player - Moves ref id to player
 * Example: 0003eff3.moveto player - moves the npc "trader Rylee" to the player
 * – Changes the race of the player. Can be used to change into a Ghoul, Super Mutant, or a Synth. You can find a list of the race ID's using the help function.
 * Note: Changing into certain races can crash the game

Character variables
Most can be used by name, e.g., but the rest you must use the ID.

Settlements
will spawn a settler. Settlers spawned this way must be moved to a settlement via the Workshop interface (default is "R" on PC) before they can be assigned to work. - will let you place a workbench anywhere that can be used to build a settlement. Note: Currently there is no known way to get settlers to move to your new settlement (other than sending them from another settlement).
 * Note: - A settler spawned like this can be assigned to a supply line and home of an existing settler (if done in that order) to take over that supply line. This can be done to fix bugged supply lines when the original settler can't be found.

- This should allow you to be able to command a settler, such as a child who is normally not commandable.

- This should allow you to move a settler who is normally not movable, such as Marcy Long to another settlement.

- This should allow you to force a normally not movable settler to become a caravan.

You will need to fast travel away from and back to the settlement for these above three commands to take effect.

To start building it is necessary to activate godmode after placing the Workbench.

To scrap everything in your settlement enter
 * Warning: Must be use after enter and exit workshop of that area and do this every time you use this command or several items in other area may also be scrapped. Things like doors to other cells, the doors to the basement in The Castle for an example. You will be unable to enter these areas if they are deleted. Be very careful when using this.

Size budget
These commands only affect workbenches in settlements. The easiest way to modify a settlement is to travel there and target the workbench with the console open.

The size budget is a combination of triangle counts and draw calls and is configured for each settlement. Each object the player creates in the settlement will use a portion of both in the budget, with more complex objects using up more. The budget itself is tracked as actor values attached to the workbench. Note that in order to use these actor values you must use the numeric id as they do not have a usable console name.

The command will allow you to see the current values.
 * - Will show the current number of triangles used by the player.
 * - Will show the current number of draw calls used by the player.
 * - Will show the maximum value of the triangle budget for the settlement.
 * - Will show the maximum value of the draw call budget for the settlement.

The command will let you change the values.
 * - Will set the current number of triangles used by the player.
 * - Will set the current number of draw calls used by the player.
 * - Will set the maximum value of the triangle budget for the settlement.
 * - Will set the maximum value of the draw call budget for the settlement.

The command will allow you to increase or decrease the current values. Positive numbers increase value, negative decreases value. Allows the value to change.
 * - Will modify the current value of the triangles used by the player.
 * - Will modify the current value of the draw calls used by the player.
 * - Will modify the maximum value of the triangle budget for the settlement.
 * - Will modify the maximum value of the draw call budget for the settlement.

Decreasing the 348 and 34A values or increasing the 349 and 34B values will allow you to build more. Decreasing the 348 and 34A values can also be achieved in-game by using this exploit.

Note: The budgets are there for a reason, to keep players from building overly large settlements that could negatively impact performance. Using these commands to ignore the budgets could have consequences.(the first time you use it nothing might happen but as soon as you leave the settlement area you will not be able to access the area again and the game crashes every time you try to get close to your settlement or even fast travel there.)

Settlement resources
Power
 * - Show the current value
 * - Adds power to any generator. Including the fuse boxes on Spectacle Island and Home Plate in Diamond City

Food
 * - Show the current value
 * - Adds to the base food value provided by the plant.
 * Note: A settler can only work on 6 Food worth of crops at a time, regardless of how much a single plant may be set to produce. As such, for the ease of assigning settlers, it is not recommended to set this value higher than a total of 6 per crop (e.g., for mutfruit plants and  for any other crops).

Water
 * - Show the current value
 * - Adds to the base water value provided by the pump or purifier.

Defense
 * - Show the current value
 * - Sets the defence provided (for turrets), or adds to the base defence value for guard posts/towers.

Note: These commands can be used to make a resource object produce additional resource types. For example, a pump can be made to produce food and defence, as well as water. This will produce food without a settler assigned to it, since the pump does not normally require anyone assigned to it. This can be a useful workaround where building is restricted, for example to provide food at Boston Airport. Be aware that this trick does not necessarily work with all objects. Adding a new resource to an object that isn't already a resource producer means it does not show up in the top bar. Adding power to an object that doesn't have a power connection means the power cannot be used. So power can be added to a power conduit, and this will power things connected to it according to the power value available there, but the top bar will not change.

Happiness

Enter the console command mode and click on the settlement workshop (actual object) before using these commands: Modify with these commands:
 * - Show the current Happiness value
 * - Show the current Bonus Happiness value. Bonus happiness is required to raise settlement Happiness from the cap without it of 80, to 100. This is provided by some crafted stores (check tooltips) and also one NPC, the Junkyard dog. Also possible from completing some settlement quests.
 * - Show the current Happiness Target value. Your settlement happiness will gradually assume this value. Great to check how well your settlement is doing.

Note: the 'modav' command will add to the existing value. Alternatively, you can use the 'setav' command to set the exact value you want.

Cheat scripts
On PC, place a text file (.txt) in Steam\Steamapps\Common\Fallout 4 with any and all of the below commands, ending with a semicolon and a new command on each line. To run the script while in-game, open the console and type without the file-type extension. For example, if the file name is "test.txt", simply type in-game to run the script and all of the commands will be applied instantly.

Using will spawn chest containing every single possible weapon X legendary combination in game.

Visual bug glitches & annoyances
There is currently a bug going around that involves locking the imagespace mod of the Recon sight and/or the Night vision sight. Use these two codes to correct them.

rimod 00094636; rimod 002041b6;

To completely disable all imagespace modifiers use the following command:

sisme 0;

This will disable all image space modifications which can hide some effects that tend to be more of an annoyance than a benefit (i.e. extreme brightness or blurriness when going stealth).