Run commands against the demo fixture
Install @jalsoedesign/putty-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
putty-js get Demo host --file ./sessions.reg --jsonExit code: 0.
Standard output:
json
"127.0.0.1"List profiles
sh
putty-js list --file ./sessions.reg --jsonExit code: 0.
Standard output:
json
[
{
"path": "Demo",
"host": "127.0.0.1",
"protocol": "ssh",
"keyFile": "C:\\keys\\example.ppk",
"remoteDirectory": ""
}
]Search metadata
sh
putty-js search 127.0.0.1 --file ./sessions.reg --colorExit code: 0.
Standard output:
Found 1 profile
┌──────────────────┬─────────────────────────────────┐
│ Label │ Value │
├──────────────────┼─────────────────────────────────┤
│ Name │ Demo │
│ Path │ Demo │
│ Protocol │ ssh │
│ Host │ 127.0.0.1 │
│ Port │ 22 │
│ Username │ deploy │
│ Password │ │
│ Passphrase │ │
│ Credential state │ not-stored │
│ Authentication │ connection/password: not-stored │
│ Private key │ C:\keys\example.ppk │
│ Remote │ │
└──────────────────┴─────────────────────────────────┘KiTTY directory
sh
putty-js list --variant kitty --directory ./Sessions --jsonExit code: 0.
Standard output:
json
[
{
"path": "Demo",
"host": "127.0.0.1",
"protocol": "ssh",
"keyFile": "C:\\keys\\example.ppk",
"remoteDirectory": ""
}
]Missing profile
sh
putty-js get Missing --file ./sessions.reg --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.