[Atom] Managing Packages with apm (Atom Package Manager)

Tadashi Shigeoka ·  Sun, February 8, 2015

For managing packages to install in the Atom editor, the star command of atom/apm (Atom Package Manager) is convenient, so I’ll introduce how to use it.

Setting Up API Token

Only when using the apm command for the first time, the browser will open the page https://atom.io/account, so you need to input the API token listed there into the terminal to set it up.

% apm stars
Welcome to Atom!

Before you can publish packages, you'll need an API token.

Visit your account page on Atom.io https://atom.io/account,
copy the token and paste it below when prompted.

Press [Enter] to open your account page on Atom.io. 
Token> _x9Ra8h3koIPN9efvjYHUcx
Saving token to Keychain ✓
Packages starred by you (0)
└── (empty)

Use `apm stars --install` to install them all or visit http://atom.io/packages to read more about them.

Starring Packages

You can star packages with apm star as shown below.

% apm star atom-beautifier 
⭐  Starring atom-beautifier ✓

% apm star atom-jshint
⭐  Starring atom-jshint ✓

Listing Starred Packages

You can output a list of packages starred with apm star using the apm stars or apm starred commands.

% apm stars
Packages starred by you (2)
├── ⭐  atom-beautifier Beautifier for Atom (5133 downloads, 8 stars)
└── ⭐  atom-jshint Validates your JS against JSHint as you type. The original and most used. (15429 downloads, 35 stars)

Use `apm stars --install` to install them all or visit http://atom.io/packages to read more about them.

Installing All Starred Packages at Once

You can install all packages listed with apm stars at once using the apm stars —install command.

apm stars --install
Installing atom-beautifier to /Users/your_user/.atom/packages ✓
Installing atom-jshint to /Users/your_user/.atom/packages ✓

That’s all.

Reference Information

That’s all from the Gemba.