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.)
| Code: | Effect: |
| change_portalgun_linkage_id # | Replace # with 0, 1, 2, or 3. This allows for separate sets of portals to be created. |
| ent_create_portal_weight_box | Creates a Weighted Storage Cube for your use. |
| fire_energy_ball | Fires an energy ball that can be used in solving puzzles. |
| sv_portal_placement_never_bump 1 | Self-explanitory. |
| sv_portal_placement_never_fail 1 | Portals can be placed on almost any surface. |
| upgrade_portalgun | Will allow use of second portal placement. |