{"library":"parse-dbtool","title":"parse-dbtool","description":"A CLI tool for Parse Server that creates database migration and seeder files using Parse.Schema. Current stable version 1.2.0 (no frequent releases). It operates as a standalone executable via npx, requiring environment variables (APPLICATION_ID, SERVER_URL, MASTER_KEY) to connect to a Parse Server instance. Unlike ORM-based migration tools, it works natively with Parse Server's schema system and supports strict mode (allowClientClassCreation: false, addField: false). Key differentiator: it generates migrations and seeds specifically for Parse Platform, not general SQL/NoSQL databases.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install parse-dbtool"],"cli":{"name":"parse-dbtool","version":null}},"imports":["module.exports = (Parse) => { ... }","let schema = new Parse.Schema('ClassName'); schema.addField('name', 'String'); schema.save();","let obj = new Parse.Object('ClassName'); obj.set('field', 'value'); await obj.save();"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// 1. Initialize folder structure\nnpx parse-dbtool init\n\n// 2. Set up .env file with Parse Server credentials\n// Create a .env file with:\nAPPLICATION_ID=myAppId\nSERVER_URL=http://localhost:1337/parse\nMASTER_KEY=myMasterKey\n\n// 3. Create a migration\nnpx parse-dbtool migration:make create_pet\n\n// 4. Edit generated file databases/migrations/XXXXXXXXXXXXXX-create_pet.js:\n'use strict';\nmodule.exports = {\n  up: async (Parse) => {\n    const schema = new Parse.Schema('Pet');\n    schema.addField('name', 'String');\n    schema.addField('species', 'String');\n    await schema.save();\n  },\n  down: async (Parse) => {\n    const schema = new Parse.Schema('Pet');\n    await schema.delete();\n  }\n};\n\n// 5. Run migration\nnpx parse-dbtool migrate\n\n// 6. (Optional) Create a seeder\nnpx parse-dbtool seed:make seed_pets\n\n// Edit databases/seeders/XXXXXXXXXXXXXX-seed_pets.js:\n'use strict';\nmodule.exports = {\n  up: async (Parse) => {\n    const pet1 = new Parse.Object('Pet');\n    pet1.set('name', 'Fluffy');\n    pet1.set('species', 'Cat');\n    await pet1.save();\n    const pet2 = new Parse.Object('Pet');\n    pet2.set('name', 'Buddy');\n    pet2.set('species', 'Dog');\n    await pet2.save();\n  },\n  down: async (Parse) => {\n    const query = new Parse.Query('Pet');\n    const pets = await query.find({ useMasterKey: true });\n    await Parse.Object.destroyAll(pets, { useMasterKey: true });\n  }\n};\n\n// 7. Run seeder\nnpx parse-dbtool db:seed","lang":"javascript","description":"Shows full workflow: init, create migration, create seeder, and run both using parse-dbtool CLI.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}