Enter the options menu, select "Controls", then "Advanced". Turn on the option for the console. Then press ~ during game play to display the console window. Type sv_cheats 1 to enable cheat mode, then activate the following cheats by entering the corresponding codes. Note: In addition to these codes, most codes from Half-Life 2 also work in Portal.
Bouncy metal ball
Changes speed of game, 0.1 = 10% of original game speed, 2 = twice the original game speed
host_timescale # (default=1)
Changes the portal linkage ID for the portal gun held by the commanding player.
change_portalgun_linkage_id # (0, 1, 2, 3)
Changes view to first person
Changes view to third person
Create a Weighted Storage Cube
Creates a dunebuggy
Creates a fast headcrab
Creates a half life 2 turret
Creates a poisonheadcrab
Creates an "ERROR" character
Fires a rocket out of your face. (Bugged)
Fires an energy ball out of your face.
get all weapons (Half Life 2 weapons also)
gives you the basic portal gun. Upgrade with upgrade_portalgun
Lets you change the gravity in the game
sv_gravity # (600=normal)
Lets you go through walls and fly around
Place portals anywhere
sv_portal_placement_never_fail # (1 or 0)
Player can take damage but won't die.
Puts gun away but stil able to shoot
Shows FPS Rate
Spawn (live) Headcrab
Spawn a rocket turret
Spawn an airboat
Spawn Combine Soldier
Spawn Gman with suitcase and never dies
Spawns a "Fastzombie" from Half-Life 2.
Spawns a standing turret
Spawns a zombie that tosses Poison Headcrabs from it's back.
The man breen
Toggle rocket turrets
ent_fire npc_rocket_turret toggle
Turns a targeted storage cube into a companion cube
ent_fire !picker skin 1
Turns cheats on or off
sv_cheats 1 (0=off/1=on)
turrets won't shoot at you
Used without portal gun: Gives a portal gun. Used with a basic portal gun: Gives full portal gun.