Skip to content

HeidiSQL JSReuse saved database and tunnel settings.

Bring HeidiSQL connection settings into code and terminal commands.

Source code: GitHub repository.

HeidiSQL already stores the database endpoint and, when configured, the SSH tunnel used to reach it. HeidiSQL JS lets scripts read those saved settings without keeping another connection configuration. Inspect the database and tunnel separately, find the required profile, or preview a supported settings change.

How it works explains where settings are read, how the native format is interpreted and what happens on the host.

Start with a working example ​

GoalStart here
Read settings from codeAPI quick start with output
Inspect settings from a terminalCLI quick start with output
Try everything without installed settingsSynthetic fixtures
Preview a supported settings changePreview, review and apply
Separate database and SSH authenticationTunnel example

What the library does ​

Read portable typed settings, registry exports or the live Windows registry. Database endpoints and SSH tunnels remain separate, with independent authentication metadata.

Read operations describe saved metadata without opening a remote session. Use Dockline for transfers/SSH and Dockline Keys for key loading and conversion. SQL queries and database import/export require a separate database implementation.

Part of the Portline family, with each application library maintained in its own repository.

Reuse a saved connection ​

Connect a selected profile through the optional shared Portline–Dockline integration. Use the same scoped execution API across application readers while keeping native parsing and metadata queries free of transport dependencies.