Skyrim:Console

The console is a powerful in-game tool only available to PC players.  From the console it is possible, while playing the game, to enter commands that will alter most aspects of gameplay, and it is also possible to obtain detailed information about NPCs, creatures, and other items in the game.

General Information
The console can be accessed in-game by toggling the "tilde key" (the actual key can be  ,  ,  ,  ,  , ,  ,  ,  , etc., depending on your keyboard layout), found near the   and   keys on most keyboards. The console prompt will appear in the lower left-hand corner of your screen. The console can also be used as a pause function during scenes or dialogue that cannot otherwise be paused. You can scroll the console output using the   and   keys. Console commands are not case-sensitive; for example, entering any of   or  TAI  or   will toggle AI. After you type a command, press the   key to activate it. You will see the command you just entered displayed above the input area. 

Many commands are targeted: this means that you may use  player.   to affect the player character; for example, type   will set the Player's Carry Weight at 1000. Or, you may want to target the NPC/actor, by first typing  prid   , Enter. Then, type the   by itself,  , to affect the NPC, specified by   (Note:  including the zeroes at the beginning of the RefID when targeting NPCs may produce a "command not found" error. That can be evaded though by placing the RefID in quotes, e.g.   will set Lydia's Carry Weight at 1000). 

You may also target an NPC or object in the console by clicking on them, and then run     to affect the NPC or object. When an NPC or object is targeted in this way, their hex code (RefID) will be displayed at the top of the console. For example, to unlock a door, open the console, click on the door so it is the active object in the console (its RefID is shown at the top of the screen), then type  . When multiple objects overlap, use the mouse wheel to scroll through different RefIDs until the correct one is selected. When playing on multiple monitors, the cursor will display in the secondary monitor but clicking it will select the object in the same area of the primary monitor.

Commands which are abbreviated (for example:  tai ) can also be run by using their full name;  thus,   is synonymous with  , and  GetActorValue  is synonymous with  . In most cases, the long command is an obvious progression from the abbreviation. Also, most  Set   commands have a counterpart  Get  , even if the counterpart isn't shown here.

Some commands require a form ID. Most articles on objects provide the ID or IDs for those items. In addition, the   command can be used to locate IDs.   would provide a list of all game objects with elven sword in their names. This can be used for items, spells ( ), and perks ( ).
 

Accessing the Console with Non-English Keyboards
If you are using a non-US keyboard, the tilde ( ) / grave accent ( ) key might not work, or there may be no key with such markings. Often, the correct key to use is the key below   and above Tab ( ), where the tilde/grave key is on a US keyboard. See the following table for specifics:



Another possible solution is to install AutoHotKey and set up a shortcut to send the tilde key code the game is expecting. Add the following lines to your AutoHotKey script and it will map F12 to grave accent ( ) and Shift+F12 to tilde (~). (The grave accent key is the same physical key as tilde on US English keyboards.)
 

On some systems you may need to use the less optimal mapping:
 

The Console key can also be remapped by editing the file located in Data\Interface\Controls\PC\ControlMap.txt.
By default the Console key is assigned the value 0x29 (DIK_GRAVE), changing to 0xb8 will assign it to the "Right Alt" key (DIK_RMENU). See a Direct Input Key (DIK) Code Table for other keys.

Commands
 

When a command requires arguments (e.g.,  additem     ), the brackets <> indicate that   should be replaced with the appropriate ID, and   with the appropriate quantity. The brackets are not part of the syntax. So  additem      becomes  .

Furthermore, all REFIDs, faction, weather etc can be entered without the leading zeros, eg:
  has the same effect as above.


 
 
 
 
 
The full list of attributes is provided at Actor Value Indices
 
 
 
 
 
 
 
 
 
The full list of attributes is provided at Actor Value Indices
 
 
 
 
 
 
 

E.g.,   would return   if the selected actor has taken the first level of the Two-handed Skull Crusher perk.
 
 

Some actors (primarily NPCs, not creatures) can be flagged as "essential" by the game and thus will not die. In this case, the character will instead crouch and stumble around for a while; however, this stumbling can usually be ended early by using the   command on him/her. 
 
 
 
The full list of attributes is provided at Actor Value Indices
 
Example 2 - move an object or NPC to the Player: type  , Enter. Then, type  , Enter. Using this code will instantly put Lydia next to you. This code is especially useful for a follower/NPC who's just disappeared after a quest due to a bug in game; e.g. Lydia is disappeared after The Break of Dawn quest. You can also select an object and type   which will move the selected object to your feet and orient it based on the camera's angle. Also see  
 
 
  Faction ID's are given below:

 
 
 
 
:
 
 
 

Important note: To remove perks from an established tree, you will need to backtrack through the entire tree. Meaning, start from the top and work your way down. In perks with ranks, you will need to remove rank 5/5, then 4/5, etc. Also, using removeperk will only remove the perk. It will not refund the perk points. 

E.g.,   will remove Barbarian rank 1/5.
 

E.g.,   will remove the "Beast Form" power from the player's spell book.
 
 
 
 
The full list of attributes is provided at Actor Value Indices
 
 
 
 
The full list of attributes is provided at Actor Value Indices
 
Be careful when making an Essential NPC mortal, if they die you will likely be unable to access the associated quest or story. However, a simple save reload will fix if you haven't save over all the files where the character is still alive(and either non-essential or essential)
Related functions: To check whether an NPC is essential to begin with, select him/her in the console (so that the ref ID appears), and enter   - if the console returns "1.00", the NPC is essential.
It is also possible to set the player them self as essential with the base ID of 00000007, However upon entering the 'bleedout' stage, the player will sometimes not get back up (usually upon the first time in a new area or after having recently set yourself as essential), however, simply entering your inventory and drinking a health potion will fix this immediately (any health potion used during bleedout will return you to full health). Usually, your character will drop down to their hands and knees, and then immediately get back up with full health.
 
For example: Serana is in ghost mode to hide her from all attacks until she becomes active in the Dawnguard questline.
 
 
If you input   that NPC will be equal level you are and will level with you up to level 100 and will start at level 1 if you're level 1.

 
   Saving and re-loading a game after it's been used on an NPC may result in neck seams, as NPC head meshes are pre-modeled and not procedurally generated to the new weight value.
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 

|- bgcolor="#dedeff"
| colspan=2 align=center|

Untargeted Commands
| These commands do not require a target reference.
 
 
 
 
These points will put you at the stables or right in front of each city but not inside.

 
 
 
 

|

|

|}
 
 
 
 
E.g.,   will list all items, etc. which have "Daedric" in their name. There is no need to put a "0" for the help command. Quotation marks are required for queries of more than one word (e.g.,  ). Use page up and page down to scroll through the results. 
 
 
 
 
 

  and   will affect the magnitude of alchemy effects without messing with your level/skill progress.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
You can get most race codes with the   command. Use PageUp and PageDown to scroll to the races at the top of the list. Unlike most other commands, the race needs to be specified in plain text and not the race's BaseID (i.e.  ). Creatures are available as race as well, but most creatures will have a buggy camera position in 3rd person.   can also be used. Upon using this code, the character's hand will be bound like in the beginning of the game, but this can be undone by drawing a weapon. Will mess up attributes/skills.
 
 
 
  
 
 
 
 
 
 
 
|}

All Known Commands
 
 

Using Batch Files with the   Command
Skyrim provides a simple batch file mechanism so you can customize your game play quickly and without repeatedly typing console commands.

Example: bat mybatchfile; runs all of the console commands in the file   or  .
Notice that the file you put in Skyrim directory mustn't have an extension, while the one in Skyrim\Data needs a   extension.
The second option is preferable - first because you don't need to change file extension and second because it keeps the root directory clean. Also a file that goes to Data folder can be shipped along with mod and placed by all Mod Managers.

To use the feature you:

Create a text file that contains a list of console commands (one per line).
Place the file in your Skyrim installation directory or in  .
Start the game.
Bring up the console.
Type   followed by the name of your batch file, for example  .

Skyrim batch files are lists of console commands that are run one after the other. They have no loops, tests, or other logic and execution doesn't stop if there's a problem with one of the commands. You can create any number of batch files, each with its own purpose.

Guidelines for Using Commands in Batch Files

Most Skyrim console commands can be run from a batch file. For example:

Toggle commands work in batch files. These include showing and hiding NPC conversation subtitles (ShowSubtitle), turning on and off grass display (TG), enabling and disabling god mode (TGM), and so forth. 

Targeted commands with an explicit reference work fine. For example, you can use   in a batch file to add 1000 gold to your inventory. If you want to give Lydia 1000 gold, use   (  being the Reference ID of Lydia).

PRID (Pick by Reference ID) selects an item, NPC, etc. Using PRID to select an NPC before performing additional commands that you want to apply to that NPC works fine, for example   then   will cause Lydia to level up correctly.

Miscellaneous commands such as FOV or FW can also be run from batch files.

The   command cannot be run from within a batch file (the game will crash to desktop).  

Example for using a Batch File to create an alternative start
With the above method you can actually create an alternative start to the game. In addition to a batch file, you also need to edit the   file, which can be found in your  C:\Users\ \Documents\My Games\Skyrim  folder.

# Open your   file and add the line   under the   tab.
# Adding this line causes Skyrim to bypass the Continue - New - Load - Credits - Quit screen, and starts a new game - without the prisoner video sequence.  Once you have created a new character, you will need to remove it again.
# Create an empty   file in your   folder (where the   is located) and name it   (or   in the   folder).
#Paste the code sniplet below the numbered list into the new file.
#Start a new game and you will not see the intro, and will begin in the White River Watch cave.
#Open the console and type  .
#Create your character.

Code to copy into the   file:
 

Using this method, you can visit Helgen before it is destroyed and you can also do the side missions. But without further editing, the Main Quest will not start (see the Quest Stages section of Unbound to find out how to start the main quest anyway).

External Links
Debug Menu — A third party mod that allows for the use of console commands on Xbox One.