This command copies the inventory of the target you currently have selected into the inventory of the NPC/container with the specified reference ID. To get the reference ID of an NPC, click it whilst the console is open and its reference ID will appear in brackets above the console.
duplicateallitems [reference id] Target Command
Reference ID | The reference ID of the NPC or container you wish to copy items INTO. The items will be copied from the inventory of the target you currently have selected. |
duplicateallitems player
The above command would copy all items in the inventory of your currently selected target to your own inventory.
duplicateallitems 0078783
This command would copy all of the items in the inventory of your target to the inventory of the NPC or container with reference ID 0078783.