osascript -e 'tell application "System Events" to sleep'
*edit, thanks @colinm for the not so verbose version!
I started to use this after pushing the last commit of the day. Ex:
git push && pmset sleepnow
For something more easily memorable, try:
I use good ol' Alfred;
Option + Space "sleep" enter