Wikia

Elder Scrolls

Console Commands (Skyrim)

46,111pages on
this wiki
Talk253
Console1 (Skyrim)

Game screen showing the Console Command line. No reference set.

Console2 (Skyrim)

Game screen showing the Console Command line. Reference set.

For other uses, see Console Commands.

Console Commands are a debugging tool available to PC players, adding a wide range of functionality to the game. On American English keyboards, the tilde key (~) will toggle the console screen, but on British English keyboards, that key is the grave key ( ` ). The tilde key on American English keyboards also picture the grave symbol. The key is located below Escape ( Esc ) and just left of the one (1) key.

Comparisons with other games

As with The Elder Scrolls III: Morrowind and The Elder Scrolls IV: Oblivion, Console commands are only available in the PC version of the game.

Using the console

Entering codes

  • Codes are not case sensitive; "a" is same as "A".
  • Codes are shown as: Code <Variable> <#>
  • The < and > are not entered with the code, and # is replaced by the desired quantity.
  • The code to add an item is listed as: Player.AddItem <ItemID> <#>
  • If you wanted to add 500 gold, it would be entered as:
player.additem f 500

Targeting

To target an object, open the console and click the object. Its name will appear about center screen. An item targeted in the console is also called a reference.

A target may also be selected using the PRID command and the target's Reference ID.

Short Code or Prefix Required

Short code refers to a code having a short form that can be used interchangeably with the Long form.

  • ToggleFogOfWar is the long code form.
  • TFOW is the short code form.

Prefix Required refers to a code needing a prefix to work as intended.

  • SetHealth <#> will set the max health of the target selected by clicking or the PRID command to <#>.
  • Player.SetHealth <#> will set your max health to <#>.

Subpages

Alchemy Armor Items
Food and Drinks
Potions and Poisons

Ingredients
Heavy
Light
Clothing
Jewelry
Books
Keys
Miscellaneous
Soul Gems
Weapons Magic Other
Arrows
Blades
Blunts
Bows
Staves
Spells
Diseases
Enchantments
Perks
Shouts
Skills
Actor Values
Batch Lists
Characters
Factions
Followers
Locations
Weather

Toggle commands

Command Effect
rm Toggle Run Mode. Will switch between run mode and walking mode. Same function as <Caps Lock> key.
tai Toggle Artificial Intelligence (Characters will not react to non-combat stimuli and dialogue may not function. Used in conjunction with TCAI will completely disable NPC actions.)
tc Toggle player Control of target entity. If used when targeting an NPC, will transfer control to said NPC, and any command inputs will be applied both characters. To fix, use TC on the player character to turn off its actions.
tcai Toggle Combat Artificial Intelligence (Characters may turn hostile, but will not attack the player.)
tcl Toggle Collision. Using the TCL command with a target toggles clipping for the target. If used while falling off a cliff, may cause a crash. Useful for unsticking your character or finding items or bodies that have fallen through a wall or floor.
tdetect Toggle AI Detection. Doesn't work with Pickpocket detection.
teofis Toggle relatively taxing image settings such as blur. May result in an increase in frames per second.
tfc Toggle freefly camera. Add <1> to pause.
tfow Toggles regions on the local map. i.e. loads all unexplored areas on the local map.
tg Toggles grass
tgm Toggle God Mode (Grants infinite health, magicka, and stamina. Carry weight will never affect movement or fast travel.)
tim Toggle Immortal Mode (Character will still take damage, but their health will never reach zero. Final blow animations may cause a permanent decapitation bug.)
tll Toggles LOD
tm Toggle Menus (Disables all GUI elements, including menus, the compass, subtitles and messages. Very useful for taking screenshots.)
tmm <#> Toggle Map Markers; <0> Disable all. <1> Enable all. <1,0,1> Show all, no fast travel.
ts Toggles display of skybox and fog.
tscr Toggles script processing
tt Toggles trees
tws Toggle water display when not underwater
twf Toggles framework border

Targeted commands

Command Effect
additem <ItemID> <#> Adds <ItemID> to target NPC, Note: Use on a merchant to set the amount of barter gold. This gold may not go to your inventory when selling items to the vendor.
DamageActorValue <attribute> <amount> Lowers the given attribute by the desired amount.
disable This will make the target disappear, but still loaded with the cell (see also: MarkForDelete).
dispelallspells Removes spell effects such as poisons from the target.
duplicateallitems <RefID> After targeting an NPC, this can be used to place a copy of their inventory into that of another NPC.
enable Used to make disabled targets re-appear. Useful for when you made a pointing mistake when disabling targets.
equipitem <ItemID> <#><left/right> Forces the target to equip <ItemID>, if it is in their inventory. Adding a "1" after the ID seems to make some items un-removable, while "0" keeps them removable as normal. <left/right> will equip the weapon in the left or right hand.
equipspell <SpellID> <left/right> Forces the target to equip <SpellID>, <left/right> will equip the spell in the left or right hand. spells cannot be acquired by addspell command such as Vampiric Drain can be acquired temporarily in this way. as for player variant: type "player.Equipspell <SpellID> <left/right>"
forceav <AV> <#> Forces <AV> to <#>
GetAngle <axis> Returns the value of given rotational axis (x,y,z) of the target.
getav <AV> Returns the current value of the specified actor value.
getavinfo <AV> Returns info about the specified actor value.
getlevel Returns the level of the target.
getlocationcleared <ID> Returns the clear code off the specified location. Requires the numerical location ID.
getpos <axis> Returns the position value of given axis (x,y,z) of the target
getrelationshiprank <ID> Returns the numerical rank of the friendliness between two characters (-4-4).
hasperk <ID> Returns whether or not the target has the specified perk.
kill Instantly kills target. (Does not kill characters/creatures marked "essential," only causes them to fall to the ground for a few minutes.)
lock <#> Lock chests, doors or people. <#> = the level of difficulty. (0-100, any larger and the lock cannot be picked)
MarkForDelete Permanently deletes the selected item either instantaneously or upon reload. This command is cleaner than disable, as it removes the item completely instead of just hiding it from view.
modav <AV> <+/-#> Changes <AV> by <+/-#>
moveto player Teleports the targeted NPC to you. (Works similar to player.placeatme <BaseID> <#> but does not create a new reference of the base object.)
openactorcontainer <#> <#> = 1,2, 3, or 4. Depending on the actors faction ranking to the player will depend on what you see in their inventory. Use the correct ranking for their current status.) This allows you to add or retrieve items from that actor. Some actors will not equip armor or weapons you store on them.
playidle <ID> Makes the target do the specified action, such as a specific attack animation.
pushactoraway <ID> <distance> Attract or repel the target in relation to the player by the specified amount.
recycleactor Cycle between different actors within the same actor ID randomly.
removeallitems Removes all items in the targets inventory. Use the <player> variable to transfer all items to own inventory.
resetai Resets the AI of the target (see also: tai).
resetinventory Restores the target's inventory to its original state.
RestoreActorValue <attribute> <amount> Reverses the effect(s) of DamageActorValue.
resurrect <#> Return a dead NPC to life. Replace <#> with 1 to resurrect with all current items intact. Leave off <#> to have the corpse removed & a new copy spawned.
setactoralpha <#> Changes the transparency of the target. Ranges from 0-100, with 0 being completely invisible and 100 being completely visible.
SetAngle <axis> <#> Sets the value of given rotational axis (x,y,z) of the target (the change happens when the targeted object is picked up).
setav <AV> <#> As above, but some values don't stay set through saves.
setessential <BaseID> <#> Make NPC mortal (0) / immortal(1).
setfavorstate <#> 0 = inactive, 1 = active. Makes any targeted NPC obey player commands by moving the cursor over an interactable object or NPC while activated. In example, typing setfavorstate 1 while having a Guard selected in the command console and clicking on a dropped item, makes that Guard pick-up and automatically equip that item. After issueing a command, typing setfavorstate 0 while a command has not yet been issued or pressed the TAB button will cancel and deactivate the command.
setgs <attribute> <amount> Set Game Setting.
setlevel <1>,<2>,<3>,<4> Sets the level of an NPC compared to the player. SetLevel 1000,0,1,81 will make target level with you from 1 to 81.
1: <% of PC's level * 10> The NPC's level in comparison to player, based on % of players level. (1000 = 100.0%)
2: <1 level +/-> How many levels this NPC will be above or below the level in 1.
3: <starting level> The lowest level this NPC can be.
4: <level cap> The highest level this NPC can be.
setlocationcleared <ID> <#> Sets a location as cleared (1) or uncleared (0). The numerical location ID must be used.
setnpcweight <#> Sets the weight of the target or the player. Ranges from 0-100, with 0 being the lightest and 100 being the heaviest.
setownership <BaseID> Allows you to make items owned by different people. They will not become the player's unless an ID is not entered. When used on chests, applies to everything inside.
SetPos <axis> <#> Sets the position value of given axis (x,y,z) of the target.
setrelationshiprank <RefID> <#> Used to set an NPCs disposition towards the player. <#> = 1-4 Note: If this doesn't help when attempting to add Follower dialogue, try setrelationshiprank <RefID> <#> then player.setrelationshiprank <RefID> <#>.
setscale <#> Sets the scale of an object. "1" is default. If no object is selected, applies to PC. NOTE: When used on an actor, it increases or decreases speed and damage. Also note that the lowest possible value to change the scale, is 0.1, and the highest possible value to change the scale, is 10.00, exactly on the dot.
setunconscious <#> Sets the target as unconscious. Range of 0-1, with 0 being conscious and 1 being unconscious.
sexchange Change gender of target NPC, or PC. Note: Only BODY changes, not the head.
shp <#> Set HDR Parameter. Nine separate numbers should be entered to change various luminosity settings.
sifh <#> Set Ignore Friendly Hit. Range of 0-1, with 0 causing the target not to ignore friendly hits and 1 causing the target to ignore them.
str <#> Set Target Refraction. Range of 0-1, with0.000001 being completely invisible and 1.000000 being completely visible, and 0 reverting the target to its default state.
unequipitem <ItemID> <#><left/right> Forces the target to unequip <ItemID>, similiar to Equipitem command except this one is for unequiping items. if it is in their inventory. Adding a '1' after the ID seems to make some items un removable, while '0' keeps them removable as normal. <left/right> will unequip the weapon in the left or right hand.
unlock Unlock the desired chest or door. Note: This may not work in some cases.
  • Most "Target commands" can be used on the player by self-targeting or prefixing with Player. in the console window. Some commands, such as Kill and Disable will crash the game when self-targeted, while others may produce unexpected results.

Quest commands

Command Effect
caqs Complete all Stages of EVERY quest.
Buggy, may not be stable. NOT recommended.
completequest <QuestID> Complete a quest. May cause buggy behavior, SetStage is generally cleaner.
getstage <QuestID> Used to get the current quest stage for quest (use ShowQuestTargets for IDs).
movetoqt <QuestID> Move to quest target.
resetquest <QuestID> Completely resets the given quest.
saq Starts EVERY quest. (May cause crash.)
SetObjectiveCompleted <QuestID> <stage> <1 to set, 0 to unset> Used to set the quest stage as being completed or uncompleted.
setstage <quest id> <stage value> Used to set the quest stage (Useful for bugged quests).
showquesttargets Shows all current quest IDs.
player.sqs <quest id> Used to display all the stages of a quest

Player commands

Command Effect
player.additem <ItemID> <#> Add an item to the inventory.
For example, to add 100 gold to the inventory, use player.additem f 100
player.addperk <PerkID> Adds the perk.
Addshout <ShoutID> Add shout to player skill list. Shouts are also part of spells so in order for this command to work you would need the spells unlocked. List of Shout Codes.
  • NOTE: Shouts can be unlocked using: player.unlockword <shoutID>
player.addspell <variable> Adds a spell, disease, or power. can be used for acquiring unused spell. ex: Conjure Dragon Priest, does not work for vampiric spells.
player.advlevel Force a Level Up (Does not add ability to pick a new perk)
AdvSkill <AV> <#> Give the player the desired amount of skill usage points. NOTE: Very inconsistent between skills. E.g. "AdvSkill speechcraft 3000" gives about as much Speech experience as "AdvSkill enchanting 1" gives Enchanting experience. See skills for test results.
animcam Allows for the camera to view the player character from any direction without changing which way they are facing.
player.drop <ItemID> <#> This will drop the item.
enableplayercontrols This command is used to enable controls during cinematics when they're disabled. Occasionally the game will glitch, instead of reloading put in this command and carry on.
player.forceav <AV> <#> Should be avoided for use, as it overrides/ignores game's automatic calculations such as item bonuses, spell bonuses, etc.
player.forceav dragonsouls # Sets the number of Dragon Souls the player has. Replace # with the desired number.
fov <#> Adjust field of view. The default is 75, and the maximum value appears to be 160. Higher numbers allow a wider field of vision, but it can be distorted. Lower numbers show a "zoomed" view. 60-90 is a useful range.
IncPCS <AVskill> Increase the player's skill points by one point. For example, the command IncPCS marksman will raise the Archery skill by 1.
player.modav <AV> <+/-#> Modifies the Actor Value by <#>.
player.paycrimegold <X> <Y> <FactionID> Sometimes, does not pay off your bounty fully.
X = 1 Remove stolen items. 0 Don't remove stolen items.
Y = 1 Go to jail. 0 Don't go to jail.
player.placeatme <Item/NPCID> <#> Places an item or actor next to the player.
playerEnchantObject <ItemID> <mgef> <mgef> Adds object to inventory with any two magic effects (not limited to enchants). Codes
psb Player Spell Book. Unlocks all spells and shouts. NOTE: Using this command will unlock every spell, even those used to test Skyrim, this may cause bugs so you should backup the game before using this.
player.removeitem <ItemID> <#> Remove an item from the inventory.
player.removeperk <PerkID> Removes a perk.; does not return the point used to gain the perk.
player.removespell <variable> Removes a spell, disease, or power.
player.resethealth Refills the player's health instantly.
s1st While in third person, the player character's arms—which would normally only appear in first person—appear behind the player character, allowing for the player to experience first person and third person simultaneously.
player.setav <AV> <#> Sets the Actor Value to <#>.
player.setcrimegold <#> <FactionID> Adds <#> to your current bounty with <FactionID>
player.setlevel <#> Sets current level to <#>.
SetPlayerRace <Raceid> Doing this will allow you to change your race without using showracemenu. Note: May bug after certain transformations (ex: Werewolf), and revert to original race, or the race you selected using showracemenu.
Player.SetRace <RaceID> A variant of SetPlayerRace <Raceid>, it is possible to become non-human race using this variant i.e. Player.SetRace DragonRace will transform the player into a Dragon and capable of using Thu'um under Dragon voice clip, this variant can also be used on NPCs.
player.setscale # Sets height for character. Use Tsun as an example for height. He ranks 1.23 on the height scale.
showracemenu Bring up character customization menu. Magicka, Stamina, and Health will be spread evenly on using this depending on your character's level. It will remove any custom point distributions. Note: Using TGM command before entering the menu will retain your original levels. Will only modify your attributes/skills/points/etc. if you change the race, sex, or select a preset from the list. Modifying cosmetic things like skin color/warpaint/hair/face shape/etc. will leave your points.
player.showinventory Lists all items in your inventory and their codes. PgUp and PgDwn to scroll through.
spf <name> Save Player Face. This saves the player's current facial settings (from character creation) in the game files.
sucsm <#> Set the speed of the free-flying camera (tfc). The default is 1. Setting it to 2, for example, would double the speed, and to 0.5 would half the speed.
player.teachword <WOOP> Teaches a word of power, words can be found with the "help <word> 4" command and are recognizable by the WOOP tag. See Dragon Shouts.
player.unlockword <shoutID> Unlocks a word of power. List of Shout Codes.
  • Most "Player commands" can be used on any NPC by left clicking them while in the console window, and typing the code without the Player. prefix.
  • The addperk command does not seem to work on NPCs, as they seem to rely upon the perks assigned to them.

Other

Command Effect
Addfac <FactionID> <#> Adds the selected NPC to a faction. May cause undesired and buggy AI behavior, 1-4 affects faction rank
AddToFaction <FactionID> <#> Alternate version of AddFac, adds the selected NPC to a faction. May cause undesired and buggy AI behavior, 1-4 affects faction rank
bat <name of text file> Executes a .bat file. For more info read this.
csb Clear Screen Blood. Removes any blood effects from the screen.
fw Force Weather. Will automatically change the current weather to the one specified. (May also vanish as with the sw command).
GetGlobalValue <Value> Returns information about the given value in the game's settings.
GetInCellParam <LocationID> <FormID> Returns whether or not the specified object is in the specified cell. Ranges from 0.00-1.00, with 0.00 being not present and 1.00 being present.
GetPCMiscStat <MiscStat> Returns the specified miscellaneous stat of the player.
help <"Object name"> <#> Show all console commands with descriptions. Add descriptors to search for IDs. ex: help "elven armor" 0 will show ids of all items that include "elven armor" in the name. Quotation mark is a must for items with more than one word ex: "elven armor", <#> sets the limits for the search function, 0 = no limits; 4 = Exact.
killall Kills all non-essential NPCs in the vicinity. Has the same result as killallactors.
load <save name> Loads the specified save. Requires quotation marks around the name if includes spaces.
ModPCMiscStat <MiscStat> <#> Modifies the specified miscellaneous stat of the player.
pcb Purge Cell Buffer. Purges interior cells you have recently exited, potentially allowing for a higher framerate at the cost of longer loading screens.
PlayerCreatePotion <ID> <ID> <ID> Allows for the player to create potions through the console. <ID> refers to the potion effect rather than the ingredient's ID. The second and third <ID> codes are optional.
Prid <RefID> Sets the NPC as reference, allowing other commands to be used, good for targeting NPCs that you cant reach/select on screen or fixing quest glitches about Npcs not appearing.
qqq Quits the game without going through the menus. (May cause crash.)
refini Refreshes .ini settings (does not reset them).
RemoveFac <FactionID> Removes the selected NPC from a faction. Usually used for unaligning hostile NPC from hostile factions, May cause undesired and buggy AI behavior.
resetinterior <LocationID> Resets the given cell, reverting it to its original settings.
save <save name> Saves the game over an existing save with the specified name. Requires quotation marks around the name if includes spaces.
saveini Saves all current game settings to the game's .ini files.
set playeranimalcount to <#> 0 Clears non-humanoid followers and allows you to recruit again.
set playerfollowercount to <#> 0 Clears followers and allows you to recruit again.
set timescale to <#> Set the rate at which time passes (20 is the default, 1 is realtime)
set <variable> to <#> Sets the specified variable.
sgtm <#> Set Gametime Multiplier. This changes the game speed (e.g. movement, dialogue, etc.), with a higher number leading to a faster speed and a lower number leading to a lower speed.
showglobalvars Shows all game variables.
showmessage <ID> Shows a message in the center of the screen with the given ID.
sqo Show Quest Objectives. Gives a list of all objectives for ongoing quests.
sqt Show Quest Targets. Gives a list of all targets for ongoing quests.
stp <#> <#> <#> <#> Set Tint Parameters. Ranges from 0-1, with stp 0 0 0 0 creating the most vibrant display and stp 1 1 1 1 creating the most black and white display.
sw <WeatherID> Set Weather. Changes the current weather to the one entered. It may vanish quickly depending on the area you're in, due to the area's climate being forced; like where rain isn't common.

Movement

Command Effect
coc <CellID> Center On Cell. Teleports you to the center of the cell. A list of coc codes is here.
cow Tamriel <Coordinates> Center on World. Teleports you to the given coordinates.
player.moveto <NPCrefID> Move to an NPC.

List of locations accessible only through Console Commands

Main article: Test Cells (Skyrim)

Not a complete list:

Bugs

This section contains bugs related to Console Commands (Skyrim). Before adding a bug to this list, consider the following:

  1. Please reload an old save to confirm if the bug is still happening.
  2. If the bug is still occurring, please post the bug report with the appropriate system template  360  / XB1  ,  PS3  / PS4  ,  PC  / MAC  , depending on which platform(s) the bug has been encountered on.
  3. Be descriptive when listing the bug and fixes, but avoid having conversations in the description and/or using first-person-anecdotes: such discussions belong on the appropriate forum board.
  •  PC   Kill command: In third person mode, the player can go into console and select themselves, and then use the kill command. This will cause the Dragonborn to die. However, this is easily glitched. If the Dragonborn is still selected, the "resurrect" command will cause major problems. First, the view will be stuck in third person mode from the angle visible at the time of death. The HUD will be completely invisible unless the Dragonborn is crouching. Animations will be broken as well, i.e. holding an iron dagger won't always register, so the fists animation will be used. The iron dagger will still be in-hand. Ragdoll physics also apply when in this state.
    •  PC(Fix)   This can be fixed by being attacked by a Greybeard using Ice Form.
  •  PC   If the player attempts to resurrect themselves through the console, the game will likely crash.
  •  PC   Toggle Collision: When using the tcl command there is a bug in the programming that will not always allow it to activate collision, when it does allow the command to work when typing tcl to disable the effect the same issue can occur.
    •  PC(Fix)   The only fix for this is to save your game, exit game to desktop, reopen game and continue on.

Start a Discussion Discussions about Console Commands (Skyrim)

Around Wikia's network

Random Wiki