16

For example, some sites tell me to use mrt add accounts-ui (using Meteorite, right?) and others say meteor add accounts-ui.

From what I understand, Meteorite is just a version control / package manager. Is this correct? What is the difference between the two commands above?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Lindsayts
  • 327
  • 2
  • 10

3 Answers3

23

Update

Meteor 0.9 release rendered Meteorite and the mrt command obsolete. All new projects should use meteor add only.

Original answer

meteor add works only for packages issues officially by the Meteor team (here's the list). mrt add is a wrapper that works also for all community packages available from atmosphere.

Hubert OG
  • 19,314
  • 7
  • 45
  • 73
  • One question: is there a difference in starting a meteor app by typing "mrt" or "meteor"? – ninjaneer Sep 19 '13 at 07:52
  • 1
    `mrt` fetch all necessary packages from atmosphere if you don't have them locally, while `meteor` works only with local copies of packages. So if your app uses a package that hasn't been prefetched, `mrt` will run while `meteor` will crash. It's generally better to use `meteor`, as this is closer to what the app will look like in production. – Hubert OG Sep 19 '13 at 10:43
  • 2
    As [Pahlevi](http://stackoverflow.com/users/701589/pahlevi-fikri-auliya) mentioned, meteorite is no longer needed as of 0.9.0. Just use `meteor add author:package`. You can look up package authors and names here: https://atmospherejs.com/ – Archonic Dec 09 '14 at 00:06
  • So this is 2018 and I am still seeing 'mrt add' for new and recent packages – Lucbug Feb 21 '18 at 16:49
10

They are the same now https://github.com/oortcloud/meteorite/

"NOTE: As of Meteor 0.9.0, Meteorite is no longer required! You can now install Atmosphere packages directly via the meteor tool."

Pahlevi Fikri Auliya
  • 4,157
  • 8
  • 35
  • 71
2

You're right, Meteorite is a packaging system for Meteor. The repository of Meteorite is Atmosphere. It's like a "composer" system with a packagist repository for the PHP language.

So, when you do a "meteor add", you only use the package delivered with the Meteor installation. But with "mrt add", you will be bound to the Meteor original package, like meteor add, or to an Atmosphere repository for all other packages. Finally, because everybody use Meteorite, you just have to use the "mrt" command.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Rebolon
  • 1,257
  • 11
  • 29