Where are the atom command line tools?


#1

As part of the Mac OSX intall, Atom installs the atom and apm commands. Where are the binaries for these commands located? I can’t find them in /Applications/Atom.app but perhaps I didn’t look hard enough?


#2

I found them. Posting here for informational purposes. The tools themselves are both stored in /Applications/Atom.app.

apm is located here:
/Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm

and atom is located here:
/Applications/Atom.app/Contents/Resources/app/atom.sh

There are symbolic links in /usr/local/bin so that the commands will be in your $PATH:
apm -> /Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm
atom -> /Applications/Atom.app/Contents/Resources/app/atom.sh


#3

Did you use the find command?

$ cd /Applications/Atom.app/
$ find . -type f -name apm
./Contents/Resources/app/apm/node_modules/atom-package-manager/bin/apm
$ find . -type f -name atom
$ find . -type f -name atom.sh
./Contents/Resources/app/atom.sh

Oh, we wrote posts at about the same time… I was also going to suggest readlink.

$ readlink "$(which apm)"
/Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm
$ readlink "$(which atom)"
/Applications/Atom.app/Contents/Resources/app/atom.sh