Skip to content

Instantly share code, notes, and snippets.

@BRELID
Created July 31, 2019 09:27
Show Gist options
  • Save BRELID/442655df1a994d2358a551f42aedf2a2 to your computer and use it in GitHub Desktop.
Save BRELID/442655df1a994d2358a551f42aedf2a2 to your computer and use it in GitHub Desktop.
Command for transform .BSON to .JSON / Commande pour transformer un .BSON en .JSON
// Command for transform .BSON to .JSON
// Commande pour transformer un .BSON en .JSON
bsondump --outFile <OUTPUT_FILE> -bsonFile <YOUR_BSON_FILE> --pretty
ex:
bsondump --outFile ./customers-data/customers.json ./backup/customers.bson --pretty
FLAGS:
--outFile : path to output file to dump BSON to / chemin vers le fichier de sortie
--bsonFile : path to BSON file to dump to JSON / chemin vers le fichier BSON à transformer en JSON
--pretty : oupt JSON formatted to be human-readble / Formate le json pour qu'il soit lisible et aligné
// For watch others flags / Pour voir les autres drapeaux:
bsondump --help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment