CLI Access

CLI Access

Run migrations from your pipeline. Dedicated CLI with Enterprise key for CI/CD integration and automated workflows.

Request an Assessment
Expert-led delivery·Self-service available
Install
# Install globally
npm install -g @migraflow/cli

# Or use via npx
npx @migraflow/cli --version
Authenticate
# Login with Enterprise key
migraflow auth login --key=ent_*******

# Or via environment variable
export MIGRAFLOW_API_KEY=ent_*******
Run Migration
# Analyze schema
migraflow analyze --input=legacy.sql --dialect=oracle

# Generate migration
migraflow migrate   --input=legacy.sql   --target=prisma   --output=./prisma/schema.prisma   --risk-threshold=medium
CI/CD Integration
# GitHub Actions example
- name: Run MigraFlow Migration
  uses: migraflow/action@v1
  with:
    api-key: ${{ secrets.MIGRAFLOW_KEY }}
    input: ./schemas/legacy.sql
    target: prisma
    output: ./prisma/
    risk-threshold: medium

Built for automation

Every flag, every option, every output — designed for pipelines.

Full Command Coverage

analyze, migrate, validate, diff, export — every web action available in CLI

Enterprise Key Auth

Dedicated API keys per environment. Rotate, revoke, scope to projects. No user credentials in CI.

Risk Threshold Gates

Fail pipeline on high-severity risks. Configurable thresholds: low, medium, high, critical.

Multi-Format Output

Export to Prisma, TypeORM, SQL, JSON, CSV simultaneously. Stdout or file output.

Incremental Migrations

Re-run on changed schemas only. Diff-based output shows what changed since last run.

Exit Codes for CI

Exit 0 = success, 1 = risk threshold failed, 2 = auth error, 3 = invalid input. Pipeline-friendly.

Export targets supported

.prisma

Prisma

.ts

TypeORM

.sql

PostgreSQL

.sql

MySQL

.sql

SQL Server

.json

JSON

.csv

CSV

.md

Diff

Automate your migration pipeline

Enterprise tier includes dedicated CLI. Start a pilot to get your API key.

Request an Assessment