Entity Editing through command line, HOW?

I used to have a list of commands to let me view/edit information on entitys that im looking at.

this was great for everything from editing NPC’s behaviors, to telling the doors in a TF2 map to open.

anyone know where i can find this information again?