Console commands (Fallout 4)/Inventory

An overview of console commands for inventory changes

Overview
The console is a debugging tool in the PC version of Fallout 4. It is used for altering content while in-game. It cannot be used in the game console versions or in Survival mode.

Inventory manipulation
All of these commands are applicable to both NPCs and the player. Where is shown in the examples, replace it with either the reference ID of an NPC, or the word  (or the number ) to apply the command to yourself. If and its trailing period (.) are omitted, the commands apply to the currently selected item in the console. The console's selected item may be set manually using the command, or interactively by clicking.
 * – Add to the inventory of the item of type  in the quantity  (or the default, 1). When  is the player, the confirmation message is suppressed when  is, or shown when   or omitted. Use the "help" command to find the form ID.
 * Example: to add one of every type of shipment to your inventory. As usual, leading zeros and case are irrelevant, so  would also work in this example.
 * Warning: Unlike previous games (such as Skyrim), negative values are not tolerated, and will crash the game. So, use of  with a negative  is no longer an alternative to.
 * Flag: Type random numbers (like 1, 2, 3) until you get the kind of armor you want (Standard, Sturdy or Heavy).
 * – Unlike the console's command, the Papyrus  function accepts either a form ID or a reference ID as its  parameter. When a reference ID is used, it can move a specific in-game item (for example, a piece of armor lying on the ground, and successfully click-selected in the console) into the inventory of .  may be entered manually, or the word  may be used to operate on the console's currently selected item. With a reference ID,  must be  or omitted (the default is 1, and any other value is treated as 1). With a form ID,  may be any value greater than zero. When  is the player, the confirmation message is suppressed if  is  or ; it is shown if  is omitted,  or.
 * – Adds to an inventory item of type the feature, where  should specify an applicable "OMOD" item.
 * Example: – Modifies an item in your inventory of type "Green Shirt and Combat Boots" (1942d6) by attaching to it "Railroad Hybrid Weave Mk5" (22dc7d).
 * – Removes from an inventory item of type the feature, where  should specify an "OMOD" item attached to . (There is also a more general function, .)
 * – Removes from the inventory of items of type  in the quantity . The removed items fall to the ground near.
 * – Removes from the inventory of items of type  in the quantity . The removed items are destroyed.
 * – Removes all items from the inventory of . If the optional parameter is supplied, the removed items will be added to the inventory of ; if the parameter is omitted, the items are destroyed.  may be the reference ID of a container, NPC, or the player.
 * Example: – The entire inventory of  is transferred to the player's inventory.
 * or – Lists the inventory of  as a series of item quantities, names, and form IDs. Equipped items are listed as "Worn". If the optional parameter  is, all armor items include a sub-list of attached mods.
 * – Equips with an item of type  from its inventory. (When  is, this command can be useful for equipping items that don't appear in the Pip-Boy inventory.)
 * – Unequips an item of type from . (When  is, this command can be useful for unequipping inaccessible items, such as the Pip-Boy.)
 * – Unequips all items from . The unequipped items remain in the inventory of.
 * Warning: Using this command on a character in power armor will cause the power armor frame to be destroyed and the character to be permanently disfigured.
 * – Displays the inventory of using the same in-game dialog box that is used for containers, allowing items to be moved between the player and target inventories, and equipped/unequipped. However, any equipped outfit (for example, "Red Dress" or "Green Shirt and Combat Boots") is not shown. Equipped armor, hats, guns, etc. are shown. The equipped outfit can be made accessible in several ways: within the dialog box, equip the target with an alternate outfit (at which time that alternate will cease to appear in the list), or, before using, use  or.

Examples

 * Using will spawn a chest containing every single possible weapon X legendary combination in game.  Be aware that the chest spawns each weapon one at a time, making it a very time-consuming process.
 * Using will produce a chest beneath the player character's feet that has 500 of all material types in one chest.