Note This cheat involves editing a game file. Please back the file up before changing anthing...

Open the file swkotor.ini which is found in the game folder. 
Find the section [Game Options] and under that section add the line EnableCheats=1

Now during gameplay press ~ to open the console, then enter the following codes

Note replace # with a number between 10 and 999

heal 
setcomputeruse #
setdemolitions #
setstealth #
setawareness #
setpersuade #
setrepair #
setsecurity #
setstrength #
setdexterity #
setconstitution #
setintelligence #
setwisdom #
setcharisma #
addexp #
turbo
invulnerability
restartminigame
bright
addlightside #
adddarkside #
revealmap
givecredits #
giveitem (item name)
givemed 
giverepair
givecomspikes
givesitharmor #
warp
infiniteuses
whereami
addlevel #
dancedancemalak