David Neto
David Neto

Reputation: 808

In Meteor, is it possible to list users using command prompt

Is it possible to list all meteor users, respective passwords and all associated data using the command prompt? I've tried opening the meteor shell and ran 'Accounts.find' and 'Accounts._accountData' but neither returns what I'm looking for.

Upvotes: 0

Views: 415

Answers (1)

srtucker22
srtucker22

Reputation: 256

From terminal via meteor shell:

  1. meteor shell will open meteor shell

  2. Meteor.users.find().fetch() will find all users and respective data

From terminal via meteor mongo:

  1. meteor mongo will open mongo shell

  2. db.users.find() will find all users and respective data in mongo

Upvotes: 5

Related Questions