DBridge CLI is here — convert, format, generate, and encode, all from your terminal. Learn more →

v0.1 · Public Beta

The dev toolkit,
now in your terminal.

DBridge CLI brings every browser tool to your shell — convert, format, generate, encode and inspect. One command. Natural syntax. Zero ceremony.

$npm install -g @dbridge-cli/cli

Natural syntax

Reads like English. No flags soup.

Local-first

Runs offline. Your data never leaves your machine.

One binary

Single 8 MB executable. No runtime needed.

Pipeable

Streams stdin/stdout. Use it in any pipeline.

Commands

Every tool, one command away.

Verbs you already know — convert, format, hash, encode. Run dbridge --help any time.

01Convert

Transform files between formats

$ dbridge convert sales.xlsx to json

Excel → JSON

$ dbridge convert data.xlsx to csv

Excel → CSV

$ dbridge convert config.json to yaml

JSON → YAML

$ dbridge convert config.yaml to json

YAML → JSON

$ dbridge convert data.csv to json

CSV → JSON

$ dbridge convert data.json to csv

JSON → CSV

$ dbridge convert data.xml to json

XML → JSON

$ dbridge convert schema.sql to erd

SQL → ERD diagram (SVG)

$ dbridge convert markdown.md to html

Markdown → HTML

$ dbridge convert schema.json to zod

JSON → Zod schema

$ dbridge convert data.json to sql

JSON → CREATE TABLE + INSERTs

$ dbridge convert schema.sql to prisma

SQL → Prisma schema

$ dbridge convert schema.sql to mermaid

SQL → Mermaid erDiagram

$ dbridge convert schema.graphql to ts

GraphQL → TypeScript types

$ dbridge convert config.toml to json

TOML → JSON

$ dbridge convert "curl ..." to fetch

cURL → fetch / axios / Python

02Format

Beautify and validate code

$ dbridge format query.sql

Format SQL with dialect detection

$ dbridge format data.json

Pretty-print JSON

$ dbridge format data.xml

Format XML with indentation

$ dbridge format page.html

Format / minify HTML

$ dbridge format data.csv

Format CSV file

$ dbridge format styles.css --minify

Minify CSS

$ dbridge format script.js --minify

Minify JavaScript

$ dbridge lint docker-compose.yml

Lint a docker-compose.yml

$ dbridge openapi validate openapi.json

Validate OpenAPI spec

03Generate

Create fake data, IDs, secrets, schemas

$ dbridge fake users --count 100

Generate 100 fake users

$ dbridge uuid --count 5

Generate 5 UUIDs (v4)

$ dbridge password --length 32

Strong random password

$ dbridge lorem --words 50

Lorem ipsum text

$ dbridge qr "https://dbridge.dev" --png

Generate QR code (PNG)

$ dbridge slug "Hello World!"

URL-friendly slug

$ dbridge readme github.com/user/repo

Generate README from repo

$ dbridge gitignore node,python,macos

.gitignore from templates

$ dbridge schema sample.json

JSON Schema (draft-07)

$ dbridge seed schema.sql --rows 50

INSERT statements with fake data

$ dbridge rsa keygen --bits 2048

RSA keypair (PEM)

$ dbridge csp build --report-only

Content-Security-Policy header

04Encode & Hash

Encoding, hashing, JWT, signatures

$ dbridge encode "secret" --base64

Base64 encode

$ dbridge decode "c2VjcmV0" --base64

Base64 decode

$ dbridge hash "hello" --sha256

SHA-256 hash

$ dbridge hmac "msg" --key K --sha256

HMAC signature

$ dbridge bcrypt "password" --rounds 12

Bcrypt hash

$ dbridge jwt decode <token>

Decode JWT

$ dbridge jwt verify <token> --secret K

Verify JWT signature

$ dbridge jwt sign payload.json --secret K

Sign JWT

$ dbridge cert decode site.pem

Decode X.509 certificate

05Clean & Inspect

Clean data, diff, inspect resources

$ dbridge clean data.csv --dedup

Remove duplicate rows

$ dbridge profile data.csv

Per-column type / null / unique stats

$ dbridge diff old.json new.json

JSON diff

$ dbridge diff a.sql b.sql --schema

Generate ALTER migrations

$ dbridge dns dbridge.dev

DNS lookup

$ dbridge ip 8.8.8.8

IP geo lookup

$ dbridge cidr 10.0.0.0/24

CIDR range calculator

$ dbridge env parse .env --mask

Parse .env (mask secrets)

$ dbridge cron explain "*/5 * * * *"

Explain cron + next runs

$ dbridge regex test "pattern" "input"

Test regex pattern

$ dbridge sql explain query.sql

Plain-English SQL explanation

Configuration

Configure once, forget about it.

Set defaults in ~/.dbridgerc or per-project in dbridge.config.json. Override any value with a flag.

Common flags

--output, -oPath for the output file
--format, -fOverride output format (json, yaml, csv, xml)
--indentIndent size for formatters (default: 2)
--quiet, -qSuppress success messages
--jsonPrint structured JSON to stdout
--help, -hShow help for any command
--version, -vPrint CLI version
~/.dbridgerc
{
  "defaults": {
    "indent": 2,
    "format": "pretty",
    "output": "./out"
  },
  "convert": {
    "csv": { "delimiter": ",", "header": true },
    "yaml": { "lineWidth": 80 }
  },
  "fake": {
    "locale": "en_US",
    "seed": 42
  },
  "aliases": {
    "f":  "format",
    "c":  "convert",
    "qr": "qr"
  }
}

Tip: run dbridge config init to scaffold a starter file in your project root.

Composable

Pipe it. Script it. Ship it.

Every command reads from stdin and writes to stdout. Chain them with classic Unix tools.

terminal
# Fetch JSON, format it, save as YAML
$ curl -s api.example.com/data | dbridge format | dbridge convert to yaml > data.yaml

# Generate 1000 fake users and pipe to your seed script
$ dbridge fake users --count 1000 | node scripts/seed.js

# Hash every file in a directory
$ find . -type f | xargs -I{}  dbridge hash {} --sha256

Get started in 30 seconds.

Install with one command. No accounts. No keys. No telemetry.

Or browse browser tools