Add CLI options on individual projects?


#1

Is this possible to do? Something like:

$ meteor --seed 20

Which could be received on the server like:

Meteor.startup(function () {
  if (seed) {
    _.each(_.range(20), () => {
      MyCollection.insert({ name: 'blah' });
    });
  }
});

#2

You’d have to use the publish-release command and release a custom track using a customized version of the meteor tool. But yeah, it’s possible to extent the CLI tool.

We’re going to start releasing versions of the Clinical Meteor track over the next couple of months, which will involve many of the commands from the StarryNight utility. If you want anything in there, let me know.

Maybe something like the following command/api?

>  $ meteor seed --count 20 --collection User --json '{name: "blah"}'