DocuFlow

MongoDB Schema Change Management & Migration Tool

Version-controlled MongoDB database management - Export, import, and migrate MongoDB collections and indexes in your CI/CD pipeline

Documentation and Examples Downloads

What is DocuFlow?

DocuFlow is a powerful command-line tool for MongoDB schema change management and database state management through file-based workflows. It enables database-as-code practices by storing schemas, indexes, and migrations in version control.

Key Features

Schema Version Control

Track database schemas, indexes, and seed data in Git. Review database changes through pull requests just like application code.

Schema Migration

Apply controlled changes across environments. Handle schema evolution with confidence and traceability.

Data Migrations

Transform data using MongoDB aggregation pipelines. Powerful and flexible data transformation capabilities.

Environment Synchronization

Keep development, staging, and production in sync with file-based state management.

Partial Exports

Export filtered datasets with custom queries. Perfect for creating test data or partial backups.

Cross-Platform

Supports Linux, Windows, macOS (Intel & ARM)

Quick Start

Installation

Check Connection Status

docuflow status mongodb://localhost:27017/mydb

Export a Collection

docuflow export mongodb://localhost:27017/mydb -c users

This creates files like: 638730123456789.upsert.users-0.json

Export with Filter

docuflow export mongodb://localhost:27017/mydb -c users -q '{"status":"active"}'

Export Collection Indexes

docuflow export mongodb://localhost:27017/mydb -c users --indexes

This creates files like: 638730123456789.ensure-indexes.users.json

Import Data

docuflow import mongodb://localhost:27017/mydb

DocuFlow automatically detects file types, tracks imported files, skips duplicates, and handles indexes and migrations.

Use Cases

Schema Change Management

Track and apply MongoDB schema changes across environments. DocuFlow enables database-as-code practices by storing schemas, indexes, and migrations in version control. Review database changes through pull requests just like application code.

CI/CD Integration

Incorporate DocuFlow into your continuous integration and deployment pipeline for automated database updates. Perfect for GitOps workflows and infrastructure as code practices.

# Export production data with filter docuflow export mongodb://prod:27017/app -c users -q '{"role":"admin"}' # Commit to git git add *.json git commit -m "Update config data" # Deploy to staging docuflow import mongodb://staging:27017/app

MongoDB DevOps

Streamline MongoDB operations with file-based state management. Handle index changes, data migrations, and environment synchronization as part of your DevOps workflow.

Seed Development Database

# Export production data with filter docuflow export mongodb://prod:27017/app -c users -q '{"role":"admin"}' # Import to local database docuflow import mongodb://localhost:27017/app-dev

Licensing

Localhost connections are always free - no license required for development and testing!

DocuFlow requires a license for non-localhost MongoDB hosts. Place your license file (e.g., db.example.com-a3f9.license) in the same directory as the executable.

Ready for production?

Support