The command getpos or getpos_exact should give you a setpos command in console.
getpos
getpos_exact
setpos