Limited support
This feature is only present in Portal 2: Community Edition and Portal: Revolution.

npc_create

🟩 Executable on Server

npc_create

Creates an NPC of the given type where the player is looking (if the given NPC can actually stand at that location).
Arguments: [npc_class_name] [name of npc (optional) ]

Warning:

This is a cheat command and can only be used when sv_cheats is set to 1.