Portal 2 Dev Console Cheats

Maybe our super-detailed and video-filled Portal 2 game guide isn’t enough for you. Maybe you need to cheat so hard, you can manipulate the very rules of Portal 2. Well, if you have a PC copy, you can do that — you can bend the game to your will.

You just have to enable the developer’s console in your copy. It’s easy to do: just go to the Main Menu, then hit Options: Keyboard and Mouse: Enable Developer’s Console. Done and done.

Now hit the ~ key whenever you want to open the console and you can input commands. Here are a few that seem to be the most useful:

    sv_cheats 1

– turns cheats on. You need to enter this one before any other commands.


– Allows you to fly and move through objects without being deterred by them.


– Makes you invulnerable.


– Switch the camera to third-person mode. It’s a little screwy, but also kind of cool.

You can also check out the full list of dev console commands for Valve’s Source engine here. They let you do a few other cool things, like turn beams to wireframes, close all portals, take screenshots, and more.

Cheat even more in Portal 2 with our Portal 2 Codes List. Unlock a few accouterments for Atlas and P-Body with our Steam unlockables for the PC version, Avatar unlockables for Xbox 360, and a growing video guide for grabbing every single Achievement and Trophy. Plus, there’s more Easter Eggs than you can shake a robotic wood-like branch beam at, and you can learn more about the Portal 2 story by locating Rat Man’s dens with our Rat Man List and listening to his Signals.

Join the Conversation   

* required field

By submitting a comment here you grant GameFront a perpetual license to reproduce your words and name/web site in attribution. Inappropriate or irrelevant comments will be removed at an admin's discretion.

20 Comments on Portal 2 Dev Console Cheats


On April 25, 2011 at 5:20 pm

What are codes that create items like propulsion and repulsion gel?


On April 29, 2011 at 4:09 am

Yay! More epicness with the power of the ~. =D

Bruno Gabriel

On May 1, 2011 at 9:20 am

the code for create propulsion gel portal gel repulsion gel is Ent_create_paint_bomb_speed Ent_create_paint_bomb_portal Ent_create_paint_bomb_erase Ent_create_paint_bomb_speed. :) , and for create box is ent_create_portal_reflector_cube :D I discovery this today :D :D


On May 7, 2011 at 11:00 am

put bind z ent_create_portal_weight_box

it might work but its for portal 1

also put
bind x sv_cheats 1
bind v noclip
it makes it so you just press v to noclip like in gmod


On May 13, 2011 at 6:33 pm


makes a companion cube


On May 25, 2011 at 2:16 pm

fires rockets that kills your partner
bind b fire_rocket_projectile
^^like an rpg


On May 29, 2011 at 4:26 am

I get the console but when i press “Singleplayer” the console goes away.
Any help please?


On June 8, 2011 at 4:39 am

@ Silas

Try binding “toggleconsole” to a key.
Example: bind p “toggleconsole”


On September 3, 2011 at 11:08 pm

is there any commands that spawn turrets?


On September 8, 2011 at 6:15 pm

@timtimtimtimtim “npc_create npc_portal_turret_floor


On September 17, 2011 at 1:10 am

how to bind left click and right click also the repulsion gel one didn’t work 4 me
PLS help


On October 5, 2011 at 11:05 pm

The commands for the gels only work in areas that the gels are activated.


On November 27, 2011 at 4:35 pm

hey dose anyone know how to get weapons like in portal 1? i want to mess around with the weapons and portals :)

Portal lover

On January 5, 2012 at 5:19 pm

@quentinduhe the turret command didn’t work for me and I tried binding it to “u”

portal traveler

On January 5, 2012 at 7:15 pm

i just press ~ for console and its very useful


On January 6, 2012 at 5:15 am

Check this out if you really want to see all the commands from the dev. console. its from the actual Valve site… just add the https:// in front of it ’cause I don’t know if i can post outside links here… developer.valvesoftware.com/wiki/Console_Command_List


On January 8, 2012 at 1:50 pm

@ed1380 you cant get weapons in portal 2 the only reason they where in portal 1 is because portal 1 had a shared source with halflife,


On May 1, 2012 at 1:43 am

Its any commands for be glados :D


On October 2, 2012 at 3:56 pm



On December 28, 2012 at 2:09 am

noclip isnt working for me