I've been using shutdown, but it reboots automaticly. so when it asks for a login i turn off the power supply. so far that hasn't hurt the SD card.

If you use
shutdown -h now
it will not reboot
just use
poweroffDont forget sudo before shutdown commands.
sudo shutdown -h now --should work.