Portal 2 Console Commands: Full List for PC
- PC Turn on the console in Options Keyboard/Mouse, press ~, type sv_cheats 1, then type a command and press Enter.
Published by Andrew B.
No cheats match that filter.
Enable cheats
| Cheat | Command | Effect |
|---|---|---|
| Enable cheats | PCsv_cheats 1 | Turns cheats on; sv_cheats 0 turns them off |
God mode and player
| Cheat | Command | Effect |
|---|---|---|
| God mode | PCgod | Makes you invincible |
| Buddha mode | PCbuddha | You take damage but cannot die |
| Noclip | PCnoclip | Fly and pass through walls |
| Notarget | PCnotarget | Turrets will not shoot at you |
| Third-person view | PCthirdperson | Switches to a third-person view |
| First-person view | PCfirstperson | Switches back to first-person view |
Portal gun
| Cheat | Command | Effect |
|---|---|---|
| Portals anywhere | PCsv_portal_placement_never_fail 1 | Lets you place portals on any surface; set it to 0 to turn it off |
| Upgrade portal gun | PCupgrade_portalgun | Gives a portal gun if you have none, or upgrades a single-portal gun to the full one |
| Basic portal gun | PCgive weapon_portalgun | Gives the basic portal gun |
| Potato gun | PCupgrade_potatogun | Gives the portal gun the potato upgrade with GLaDOS |
| Remove all portals | PCent_fire prop_portal fizzle | Removes every portal on the map |
Spawn cubes and gels
| Cheat | Command | Effect |
|---|---|---|
| Companion Cube | PCent_create_portal_companion_cube | Creates a Companion Cube |
| Reflector cube | PCent_create_portal_reflector_cube | Creates a cube that redirects lasers |
| Weighted cube | PCent_create_portal_weighted_cube | Creates a weighted storage cube |
| Turret | PCnpc_create npc_portal_turret_floor | Spawns a standing turret |
| Wheatley | PCent_create npc_personality_core | Spawns the Wheatley personality core |
| Propulsion gel | PCent_create_paint_bomb_speed | Fires propulsion gel |
| Repulsion gel | PCent_create_paint_bomb_jump | Fires repulsion gel |
| Conversion gel | PCent_create_paint_bomb_portal | Fires conversion gel |
| Erase gel | PCent_create_paint_bomb_erase | Fires water that clears gel |
World and display
| Cheat | Command | Effect |
|---|---|---|
| Normal gravity | PCsv_gravity 600 | Sets gravity; 600 is normal, change the number to make it lighter or heavier |
| Normal game speed | PChost_timescale 1 | Sets game speed; 1 is normal, lower is slower and higher is faster |
| Show FPS | PCcl_showfps 1 | Shows the frame rate |
| Show position | PCcl_showpos 1 | Shows your position, useful for sharing portal spots |
Co-op
| Cheat | Command | Effect |
|---|---|---|
| Kill Atlas | PCkill blue | Kills Atlas in co-op |
| Kill P-Body | PCkill red | Kills P-Body in co-op |
| Teleport Atlas | PCent_teleport blue | Teleports Atlas to where you are looking |
| Teleport P-Body | PCent_teleport red | Teleports P-Body to where you are looking |
A code here did not work? Tell us and it gets rechecked. Report a code
How to enter cheats in Portal 2
PC
- Open Options Keyboard/Mouse and turn on the developer console.
- Start a chamber and press ~ to open the console.
- Type sv_cheats 1 and press Enter.
- Type a command and press Enter.
How to enable developer mode in Portal 2
- Right-click the desktop and choose New > Shortcut.
- Point it at portal2.exe in quotes, followed by -console.
- Start the game from this shortcut; the console opens at the title menu.
- Press ~ in game to open or close the console.
Do cheats disable achievements in Portal 2?
Yes. The Portal Wiki says that with sv_cheats 1 on you cannot earn achievements or submit challenge mode records. Set sv_cheats 0 and restart the map before you go for either. The Portal Wiki: List of useful console commands
Can you use these cheats in multiplayer?
In co-op the host decides. The Portal Wiki says the host controls sv_cheats, so cheat commands only work for both players once the host has turned cheats on. The Portal Wiki: List of useful console commands
Compatibility notes
Which releases these codes apply to, and where one behaves differently. Each note links to the source that documents it.
- Achievements and challenge mode The Portal Wiki says sv_cheats 1 stops you earning achievements and submitting challenge mode records. The Portal Wiki: List of useful console commands
- Co-op The Portal Wiki says the host controls sv_cheats in multiplayer, and that client commands such as r_drawviewmodel only work there when the server has cheats on. The Portal Wiki: List of useful console commands
- Launching with -console GameRevolution gives a second way in: add -console after portal2.exe in a desktop shortcut, and the console opens at the title menu. A normal shortcut does not open it. GameRevolution: Portal 2 PC cheats
- Demos The Portal Wiki says Portal 2 splits a recorded demo on every map change, including the Hub, and that videos over 2 GB become unviewable. The Portal Wiki: List of useful console commands
FAQ
How do you open the console in Portal 2?
Turn on the developer console in Options Keyboard/Mouse, then press the ~ key. You can also launch the game with -console.
Do Portal 2 cheats disable achievements?
Yes. With sv_cheats 1 on you cannot earn achievements or submit challenge mode records.
How do you place portals anywhere in Portal 2?
Type sv_cheats 1, then sv_portal_placement_never_fail 1. Set it back to 0 to turn it off.
How do you spawn a Companion Cube in Portal 2?
With cheats on, type ent_create_portal_companion_cube in the console.
Do console commands work in Portal 2 co-op?
Yes, if the host turns on sv_cheats. The host controls it for both players.
