DevTB BridgeCheat Sheet →
Bookmark me

The Command Cheat Sheet

Copy, paste, swap the framework names. Filter by surface: the CLI (devtb) for automation and batch jobs, or Code for the Python library and the WordPress REST API.

Straight from the guide

CLI · devtbFast lane: Elementor JSON to Bootstrap HTML
./devtb transform elementor bootstrap input.json -o output.html
CLI · devtbInspect a file without converting it
./devtb analyze elementor mystery.json
CLI · devtbBatch-convert an entire site export
./devtb transform-site divi gutenberg ./export-kit/
Code · Python / RESTUse a converter from Python
from translation_bridge.converters.bootstrap import BootstrapConverter

converter = BootstrapConverter()
output = converter.convert(parsed_data)
Code · Python / RESTCall the WordPress REST endpoint
POST /wp-json/devtb/v2/translate
{
  "source": "elementor",
  "target": "gutenberg",
  "content": { ... }
}

CLI: the everyday commands

CLI · devtbTransform one page
./devtb transform elementor bootstrap input.json -o output.html
CLI · devtbConvert a whole site export
./devtb transform-site divi gutenberg ./export-kit/
CLI · devtbAnalyze a file (no conversion)
./devtb analyze elementor mystery.json

Python: drop it in a pipeline

Code · Python / RESTImport and run a converter
from translation_bridge.converters.bootstrap import BootstrapConverter

converter = BootstrapConverter()
output = converter.convert(parsed_data)

REST API: the WordPress plugin

Code · Python / RESTQueue a translation
POST /wp-json/devtb/v2/translate
{
  "source": "elementor",
  "target": "gutenberg",
  "content": { ... }
}
Code · Python / RESTInstall from source
# PHP 8.1+ and Python 3.9+
composer install
pip install -e .