Portal Cheat Codes, on the PC

Portal is a 2007 puzzle-platform game developed and published by Valve. It was released in a bundle, The Orange Box, for Windows, Xbox 360 and PlayStation 3, and has been since ported to other systems, including Mac OS X, Linux, and Android (via Nvidia Shield).
Cheat codes, console commands, secrets:
All commands are done via the console.
They must be enabled via the console option on shortcut,
or enabled through the in-game options under the Advanced
section of Controls. It is then accessed by pressing [~]
(Note: Most of these require sv_cheats to be set to 1.)
change_portalgun_linkage_id [0-3] - Allow separate sets of portals be created
ent_create_portal_weight_box - Spawn Weighted Storage Cube
fire_energy_ball - Fire an energy ball
sv_portal_placement_never_bump 1 - Portal placement cannot be bumped
sv_portal_placement_never_fail 1 - Portals can be placed on any surfaces
upgrade_portalgun - Allow use of second portal placement
npc_create npc_citizen - Spawn citizen
npc_create npc_breen - Spawn Breen
npc_create npc_zombie - Spawn zombie
ent_create_portal_metal_sphere - Spawn Bouncy metal ball
give weapon_portalgun - Basic portal gun
view firstperson - First person
view thirdperson - Third person
impulse 101 - All weapons, including from Half-Life 2
god - Invincibility
noclip - No clipping mode
sv_cheats 0 - Disable cheat mode
sv_bonus_map_complete 1 - All challenges completed
buddha - Take damage but cannot die
sv_gravity [number] - Set gravity; "600" is default
npc_create npc_headcrab - Spawn live Headcrab
npc_create npc_barnacle - Spawn Barnacle
npc_create npc_combine_s - Spawn Combine Soldier
npc_create npc_gman - Spawn Gman with suitcase
npc_create npc_alyx - Spawn Alyx
npc_portal_turret_floor - Spawn standing turret
npc_create npc_metropolice - Spawn Metro policeman
host_timescale [number] - Set game speed; default is "1"
notarget - Turrets do not shoot at you
npc_create_aimed npc_rocket_turret - Spawn a rocket turret
ch_createairboat - Spawn an airboat
ent_fire npc_rocket_turret toggle - Toggle rocket turrets
ent_fire !picker skin 1 - Turn targeted storage cube into companion
npc_create npc_fastzombie - Spawn Half-Life 2 "fastzombie"
npc_create npc_poisonzombie - Spawn zombie that tosses Poison Headcrabs
Cheat codes, console commands, secrets and system requirements for Portal free online.

Game description

Windows PlayStation 3 Xbox 360 Mac OS X Linux Android (Nvidia Shield only)
Game Developer:
Game Genre:
Puzzle-platform game
Game Series:
Game Mode:
Game Publisher: