Opening Atom from Command Line

Atom allows you to open files from the command line

If you have Atom installed you can run the atom command with one or more file paths to open up those files in Atom.

Check if Atom is already configured to run on your computer’s Command Line

Open up your terminal and run the following command

$ atom --help

You should receive output similar to the following

Atom Editor v1.39.1

Usage:
  atom
  atom [options] [path ...]
  atom file[:line[:column]]

One or more paths to files or folders may be specified. If there is an
existing Atom window that contains all of the given folders, the paths
will be opened in that window. Otherwise, they will be opened in a new
window.

If Atom is not configured to run from your computer’s Command Line

Open Atom and choose the following from the menu bar Atom -> Install Shell Commands

inline