With the Atom editor open, in the menu bar, click Atom » Install Shell Commands:
When Atom installs it automatically creates a symlink in your /usr/local/bin. However in case it hasn't, you can create it yourself on your Mac:
$ ln -s /Applications/Atom.app/Contents/Resources/app/atom.sh /usr/local/bin/atom