@dl-little/fm-cli
v1.0.2
Published
Command line interface for seeding mongodb cluster with synthetic data.
Downloads
5
Readme
Create Fake Data in MongoDB cluster for local development
FM-CLI is a command line tool that lets you seed your mongodb cluster with fake data from FakerJS. Check out the GUI version here:
There are 5 document types with sensible default keys:
- Product:
- User:
- Employee:
- Credit Card:
- Bank Account:
Installation
npm install -g fm-cli
Usage
To start using My Node CLI, run:
fm-cli -h
Options
Example:
fm-cli -u mongodb+srv://<UN>:<PW>@<CLUSTER NAME>.flustyo.mongodb.net/ -d database-name -c collection-name -a 23 --type bank_account
If you don't pass any options when invoking fm-cli
, you will be walked through prompts to gather the options:
fm-cli
Once you've entered your Atlas URI once, the connection string will be stored in a config file and offered as a default when prompted.
Contributing
Contributions are welcome.
License
The MIT License (MIT)
Copyright (c) 2015 Chris Kibble
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.