Source: Elder scrolls wikia.
Codes using Toggle command (it is not case sensitive, "a" is same as "A") :
Addfac <variable> 1 - Adds the selected NPC to a faction. May cause undesired and buggy AI behavior. Also addtofaction can be used instead of addfac.
Addtofaction 19809 1 adds an NPC to the marriage-faction, allowing players to marry this NPC.
Addtofaction 0005A1?A4 1 adds an NPC to the player ally faction, which will make a normally hostile NPC no longer hostile towards the player.
Addtofaction 000E0CD9 1 adds an NPC or the player to the Bandit Ally Faction, most bandits will no longer attack.
Addtofaction 000E0CDA 1 adds an NPC or the player to the Warlock Ally Faction, most warlocks and necromancers will no longer attack.
Addtofaction 000E0CDB 1 adds an NPC or the player to the Draugr Ally Faction, most draugr will no longer attack
Addtofaction 5C84D 1 adds an NPC to the potentialfollower faction. However, whether or not they'll follow you depends on their disposition towards you.
tg - Toggles grass display.
ts - Toggles display of skybox and fog.
TLL - Disable/Enable LOD, which will reduce your view distance drastically (can be useful for a performance gain or for certain glitches and annoyances that pertain to LOD)
Addshout - Add selected shout to player skill list. Shout Codes., Shouts are also part of spells so in order for this command to work you would need the spells unlocked.
Equipitem <formid> - Forces the targetted actor (or your character, if using the "player.equipitem" command instead) to equip a specific item, if it is present in their inventory.
The "showinventory" command can be used with this to provide you with the FormID of equippable items in an actor's inventory.
You can use this command on yourself (player.equipitem <formid>) to equip weapons that are not normally available in the game. Ex. "player.equipitem 0010ec8a" allows you to equip a Dwarven Sphere Centurian's Crossbow. (Looks like a normal iron bow but glows red)
SetPlayerRace <id> - Doing this will allow you to change your race without using showracemenu, but you do not get the luxury of the menu. (Note: This appears to bug out after certain transformations (ex: Werewolf) and you will be back to your original race, or the race you selected using showracemenu.)
GetStage <quest id> - Used to get the current quest stage for given quest ID (use command ShowQuestTargets for IDs).
player.sqs <quest id> - Used to display all the stages of a quest
SetStage <quest id> <stage value> - Used to set the quest stage (Useful for bugged quests) use command ShowQuestTargets for quest IDs and player.sqs to show how many stages are there (note that you have set the stage one at a time in order to get its effect.)
coc <cell edid> - The Center On Cell command instantly teleports you to the center of any cell location you type in.
Example: coc riverwood, or coc whiterunorigin/riftenorigin/markarthorigin etc.)
coc qasmoke - An example of the coc command, this brings you to one of the developer's testing cells, with all items and crafting interfaces in the game. Be careful as opening enchanted armor and weapons cabinets may cause your game to crash (in some cases the game may simply stop responding, if this is the case, be patient and let the objects load; there are a lot of them- every type of regular weapon times at least 20).
fov x - Adjust field of view (insert fov value into )
showracemenu - Bring up character customization menu.
TGM - Toggle God Mode (invincible, also removing encumbering effect, removing shout cooldown, and granting unlimited magicka and stamina)
TIM - Toggle Immortal Mode (makes it so your health will never reach zero no matter what even though you still take damage, but you can't die (final blow animations won't kill you either) and nothing extra, which is why it's not the same command as TGM)
You can still be decapitated. So even after TIM is disabled, your character will be alive and decapitated.
TCL - Toggle Collision (no clipping mode; interacting possible, walk pointing up to fly into the air). You can turn collison back on with the command TCL ON (This is not possible when an object is selected.)
TM - Toggle Menus (Removes the HUD and other dialogue texts)
TMM (0) - >SETS not toggle!< Map Markers (all locations, tmm 1 shows, tmm 0 clears)(tmm 0 will clear any existing locations previously found)
TFC - Toggle freefly cam (removes the body and set the camera free, you will not be able to interract)
TAI - Toggle Artificial Intelligence (freezes npc, they can't walk, move, or anything.)
TCAI - Toggle Combat Artificial Intelligence (same as TAI, however only removes an NPC's ablility to fight)
TDetect - Toggle AI Detection (You can steal all you want and no one will see you, doesn't work with pickpocketing)
TC - Toggle Controls Driven (if used when highlighting an NPC, will transfer control to said NPC, but any command inputted will be applied to player as well. e.g. if you hold forward, both player and controlled NPC will move forward, best to make sure player is in a safe position when using this)
Codes using player target command:
player.addperk <variable> - ( 000581e7 for Augmented Flames level 1 ; "player.addperk 000581e7")
(To find the perk id type 'help "perk name" 4', then add each level in order). Make sure to put double quotes around perks with a space in them. (This also works with items if you need to find out their code.)
player.removeperk <variable> - Removes a learned perk; does not return the point used to gain the perk. Useful for manually respec-ing your character if you have misallocated a perk.
player.addspell <variable> - Adds a spell, disease, or power to your character. (Examples: "player.addspell 0007e8e1" for Raise Zombie; "player.addspell 000b8780" for Sanguine Vampiris)
For a list of all obtainable spells (no dev spells like "psb" unlocks) intended for batch use.
player.additem <base_id> <amount> - (F # for gold, A # for lockpick ; "player.additem F 100" adds 100 gold for example)
player.additem <base_id> -1 will remove an item from your inventory of that ID. Good for stuck quest items.
player.removeitem <base_id> 1 will also remove an item from your inventory of that ID.
player.drop <base_id> <Amount> - This will drop however much of that item you have. This is useful if you get a quest item stuck in your inventory and you don't want to just delete it.
player.showinventory - Lists all items in your inventory and their codes. PgUp and PgDwn to scroll through.
player.setcrimegold XXX <faction id>- Set it high if you want to fight, set it at 0 if you want to be free.
player.setlevel X - Make X equal your desired character level.
player.moveto X - Can move you to an NPC. X stands for the NPC's refID. Example: If you wanted to move your character to Wujeeta, you would type into the console: player.moveto 00019DDF
player.teachword <WOOP> teaches a word of power to a shout, words can be found with the "help <word> 4" command and are recognizable by the WOOP tag.
player.setav <value> <amount> - Sets the Actor Value to amount.
player.setav <skill> <amount> - Sets skill directly to <amount>. Example: [player.setav marksman 50] sets your archery to 50.
A list of commands to max all skills, and a list to max all skills and all perks.
player.setav <attribute> <amount> - This also works attributes such as health, stamina, magicka, meleedamage, and carryweight. Note that certain attributes (such as carryweight) may revert to their original values upon loading a game.
player.setav dragonsouls <amount> - Adds this amount of dragonsouls.
player.setav shoutrecoverymult <multiplier> - Changes the cooldown of dragon shouts. The default multiplier is 1. A multiplier of 0 will cause instantaneous cooldown. Higher values will make shouts take longer to recover.
player.setav speedmult <percentage> - Where <percentage> equals your movement speed percentage as an integer value. (100 = 100%). To enable the new movement speed, you have to activate sneaking, running or drawing/sheathing your weapon(s) once. (NOTE: Using this can cause instability and crashes if you run into a new area too quickly)
player.modav <value> <amount> - Modifies the Actor Value by amount. This command can modify the same values that player.setav does, but acts as a permanent buff or debuff rather than changing the base amount.
player.modav <skill> <amount> - Buffs or debuffs a skill by <amount>. The skill name can be found from the skill list, and <amount> equals the value you want to increase/decrease the skill. Example: If your Block skill is 30, "player.modav block 10", adds a +10 buff to your Block, setting its total value to 40 (with the skill level appearing green as if a spell or item is affecting the skill). Using "player.modav block -10" would activate a permanent debuff to your Block and set it to 10 (with the skill level appearing in red). Using this allows you to have the benefits of a high skill level and still gain levels normally, as it counts like a magical buff instead of changing the base skill number.
player.modav <attribute> <amount> - Attributes such as health, stamina, magicka, meleedamage, and carryweight can be given buffs or debuffs as well. Unlike player.setav, player.modav changes to secondary attributes (such as carryweight) will stick around after loading saves.
player.modav dragonsouls <amount> - Gives <amount> number of dragon souls.
player.forceav <value> <amount> - should be avoided for use, as it overrides/ignores game's automatic calculations such as item bonuses, spell bonuses, etc.
player.placeatme <reference code>- Places an item or actor next to the player. (for example, player.placeatme 457FC, would create a generic Wood Elf NPC next to you. This command in use, can be seen here.
playerEnchantObject <object> <mgef> <mgef> - Adds object to inventory with any two magic effects (not limited to enchants). Ex: PlayerEnchantObject 00017696 0003eb29 00109632 (This will add a cowl to my inventory with (at 100 Enchanting level) For 0 seconds, items enchanted 100% stronger. Increases enchanting level by 100. (If you do it again with the cowl on, they will be at 200, and so on)) Thus, making this the best command in the console as you can create the most insane gear imagineable. A list of enchantment IDs can be found here .
setessential <base_id> 0, setessential <base_id> 1 - make NPC mortal / immortal. This requires the base ID, not the reference ID displayed by clicking the NPC with the console active. Base IDs are listed on the page for the NPC here.
This makes the npc of your choice "immortal", where as they would just kneel down if their HP Drops to 0 and then recover slowly to get back up.
Other helpful codes:
set playerfollowercount to <0 or 1> Helpfull if you lost a follower or are bugged- 0 clears followers and allows you to recruit again.
Prid <Npc ID> - Targets the written Npc, allowing for other commands to be issued to it, good for targeting Npcs that you cant reach/select on screen or fixing quest glitches about Npcs not appearing. (example of usage : type "Prid 0001A677" will first target Jarl of Whiterun even when you can't see him, then other commands such as "kill", "moveto" can be used on him.)
bat <name of text file> - You can create a notepad or text document to create several "batch" or list of commands to all be executed at once. All you have to do is open notepad and start type commands and start a new line for each one. This is especially helpful if you want to do a number of things such as adding materials, potions, ingredients, etc., without the need to keep minimizing and looking up the code, etc. For step by step instructions and compiled command lists for batch use, go here.
Disable - With the console open, click on a corpse or item, piece of environment or really anything at all and type disable then press enter. This will make the selected thing disappear, good for cleaning up messes, dragon corpses that won't dissapear (Also see MarkForDelete), and is sometimes amusing for removing big mountains and stuff. If you remove something by mistake because you selected the wrong thing, simply type Enable before selecting anything else and it will reappear.
help - Use by itself to show all console commands with descriptions. Add descriptors to search for IDs. (ex: help "elven armor" 0 will show the ids of all items that include "elven armor" in their name. (the 0 sets the limits for the search function, 0 being no limits) This can be quite useful as it can search nearly anything in the game including dialog options, places, spells, etc.
movetoqt xxx - Teleports you to the quest marker, replace xxx with quest ID (for example: taking a Thieves Guild burglary side quest you input "movetoqt tgrbe").
showquesttargets - Shows all current quest IDs, note: Having more than four quest or more may have some quest IDs will be cut off when displayed in console(You can scroll through console using Page Up and Page Down keys on the keyboard).
AdvSkill - Give the player the desired amount of skill usage points [AdvSkill onehanded 100]. CAUTION: AdvSkill is very inconsistent between different skills. E.g. "AdvSkill speechcraft 3000" would give about as much Speech experience as "AdvSkill enchanting 1" gives Enchanating experience.
IncPCS - Increase the players skill points by one point [IncSkill onehanded] - Skill List
qqq - quits the game without exiting to the main menu.
unlock - Target the desired chest or door by clicking on it and then type "unlock"
lock XXX - You can lock chests and door, or people by targeting them and typing "lock" followed by the level of difficulty you wish to set it at.
kill - Target your enemy by clicking on them once in the console menu and type "kill" and it does just that.
killall - Kills all hostiles in your immediate vicinity
resurrect - Killed someone you didn't mean to? Target them once in the console menu and type "resurrect" and it will bring them back from the grave as they were before the fight started. (add a one after resurrect, and they will just stand up alive, their items won't respawn, so if you take all the gear, weapons off a character, then [resurrect 1] they will stand up naked. Useful for giving characters gear they wouldn't have normally. BE WARNED: If you resurrect a companion, all of the extra items and equipment you have given them will be removed. They will default to their original equipment. (Typing resurrect 1 will resurrect them as they are, with equipment and items intact.)
removeallitems - Target the desired character from the console menu and then type "removeallitems" and they will be stripped of everything in their inventory, including their clothes.
removeallitems player - strip all items and transfer into the player's inventory.
psb - (Populate Spell Book) Unlocks all spells in-game and unlocks all shouts. Note that using this command will unlock spells, even those used to test Skyrim. Also, this may cause bugs as it doesn't work properly yet in Skyrim so you should also backup the game before using this.
caqs - Complete all Quest Stages of EVERY quest. (May also cause bugs where you will be frozen and unable to move.)
player.advlevel - Force a Level Up (Does not add ability to pick a new perk)
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.
sexchange - Changes the gender of the targeted NPC, or the player's character otherwise (Helpful for getting stubborn arrows relieved from the body)
set timescale to # - Set the rate at which time passes (20 is the default, 1 is realtime)
sw - "Start Weather", which will bring on the sequence of the current weather to the one specified (usage: sw (WeatherID), which for instance, sw c8220 will likely make a rainstorm form (though it may vanish quickly depending on which area of the game you're in, due to the area's climate being forced (like where rain isn't common)).
fw - "Force Weather", which will automatically change the current weather to the one specified (usage: fw (WeatherID), which for instance, "fw 10fef8" forces the darkened Sovngarde weather no matter which area of the game you're in (may also vanish as with the sw command).
Codes using NPC target (click NPC then type code):
additem <base_id> <amount> - Can be used to deck out your follower, or set the barter gold amount for a merchant ("additem F 1000" adds 1000 gold to their available amount)
modav <value> <amount> - Adds the specified amount to the NPCs current value. Can be used to make followers practically immortal by using "health" as the value and a high number for amount.
forceav <value> <amount> - Forces the specified value to the amount selected.
setav <value> <amount> - As above, but some values don't stay set through saves.
setscale <value> - Sets the scale of an object. 1 is the default, if no object is selected, applies to player character
player.setrelationshiprank <actor> <value> - used to set an NPCs disposition towards the player. IE "player.setrelationshiprank player 4" will set the selected NPC's relationship rank to 4 (the highest).
If this doesn't help when attempting to add Follower dialogue to an NPC, as it didn't for me, try setrelationshiprank <actor> <value> and then player.setrelationshiprank <actor> <value>, where <actor> is the ID of the NPC you want to become a follower. Note that not all NPCs can be added, for example try adding anyone from Dark Brotherhood, you will find that they cannot be made followers.
openactorcontainer 1 (2, 3, or 4 I believe depending upon the actors faction ranking to the player will depend on what you see in their inventory. At least this has happened to me. Use the correct ranking for their current status.) Click on the actor (even your horse or dog) then type the code, or, enter code then click, doesn't seem to matter the order. This allows you to add or retrieve items from that actor. Some actors (no, your horse or dog will not equip armor or weapons, they will simply carry the items) will not equip armor or weapons you store on them regardless of it's condition relative to their currently equipped armor/weapons. Some actors will use the best of the best and leave the rest.
Codes using Object target (click object then type code), very useful for housedecoration:
GetPos <axis> - Returns the position value of given axis(x,y, z) of the target
SetPos <axis> <value> - Sets the position value of given axis(x,y, z) of the target.
GetAngle <axis> - Returns the value of given rotational axis(x,y,z) of the target.
SetAngle <axis> <value> - Sets the value of given rotational axis(x,y,z) of the target (the change happens when the targeted object is picked up).
MarkForDelete - Seems to delete an item from your house.
CompleteQuest ID - Complete a quest
MarkForDelete - Just used this on a dragon corpse, after a quicksave and then reload the skeleton was removed from the game. The upcoming patch should fix the dragon skeleton cleanup issue, but for anyone who won't be getting the patch this will let you work around it.