Run commands against the demo fixture
Install @jalsoedesign/heidisql-cli and save the synthetic files. These captures use those exact files. They are independent of the broader reference examples using example.invalid endpoints.
Get one property
sh
heidisql-js get Demo host --file ./portable_settings.txt --jsonExit code: 0.
Standard output:
json
"127.0.0.1"List profiles
sh
heidisql-js list --file ./portable_settings.txt --jsonExit code: 0.
Standard output:
json
[
{
"path": "Demo",
"host": "127.0.0.1",
"protocol": "mysql",
"keyFile": "C:\\keys\\example.ppk",
"remoteDirectory": ""
}
]Search metadata
sh
heidisql-js search 127.0.0.1 --file ./portable_settings.txt --colorExit code: 0.
Standard output:
Found 1 profile
┌──────────────────┬─────────────────────────────────────────────────────────┐
│ Label │ Value │
├──────────────────┼─────────────────────────────────────────────────────────┤
│ Name │ Demo │
│ Path │ Demo │
│ Protocol │ mysql │
│ Host │ 127.0.0.1 │
│ Port │ 3306 │
│ Username │ analyst │
│ Password │ │
│ Passphrase │ │
│ Credential state │ not-stored │
│ Authentication │ database/password: not-stored; ssh/password: not-stored │
│ Private key │ C:\keys\example.ppk │
│ Remote │ │
└──────────────────┴─────────────────────────────────────────────────────────┘Missing profile
sh
heidisql-js get Missing --file ./portable_settings.txt --jsonExit code: 1.
Standard error:
text
{"error":"Could not find profile by path \"Missing\""}JSON is colour-free; the human capture preserves actual CLI colours. Check the exit code before consuming output. Credential values remain masked unless explicit supported resolution is requested. See automation and the full command reference.