recs-frommongo
recs-frommongo --host user:pass@URI --name DB_NAME --collection COLLECTION --query QUERY Generate records from a MongoDB query. Arguments: --host <HOST_URI> URI for your mongo instance, may include user:pass@URI --user <USER> User to authenticate as. --password <PASSWORD> Password for --user --name <DB_NAME> Name of database to connect to --collection <COLLECTION_NAME> Name of collection to query against --query <QUERY> JSON query string to run against the -- collection --filename-key|fk <keyspec> Add a key with the source filename (if no filename is applicable will put NONE) Help Options: --help This help screen Examples: Make a query against mongo hq recs-frommongo --host mongodb://user:pass@dharma.mongohq.com:10069 --name my_app --collection my_collection --query '{doc_key: {$not: {$size: 0}}}'
To install App::RecordStream, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::RecordStream
CPAN shell
perl -MCPAN -e shell install App::RecordStream
For more information on module installation, please visit the detailed CPAN module installation guide.