Sleep Commands
(sleep)
will immediately sleep your Mac.
(sleep display)
will sleep the display.
(sleep screensaver)
will start the screen saver, also locking your machine if you have that set up in System Preferences.
See also: Awake Commands
Examples
(sleep)
(sleep display)
(sleep screensaver)