Skip to content

Automation and troubleshooting ​

Use --json and check the exit status before reading stdout as a success result. CLI behavior documents legacy query shapes, permissive parsing and command-specific differences. Connection checks have a separate versioned JSON contract and status-specific exit codes. Do not treat every FileZilla command as the same protocol.

sh
filezilla-js get Demo host --file ./sitemanager.xml --json

With the quick-start fixture, this exits 0 and prints "127.0.0.1". Missing paths/files and malformed native settings have captured failure examples.

Passwords remain masked by default. Search uses (hidden*) and a highlighted --show-password footer when a saved value is hidden. The key path and remote directory are metadata; showing them does not read the private key. Legacy queries can load credentials before masking, so choose the API with explicit options when credential-loading control is required.

ProblemWhat to check
Wrong default settings filePass an explicit --file; default discovery does not detect every launcher override.
Exact lookup failsCopy the canonical path from list output, preserving encoding and case.
Search differs between commandsStandalone search uses all fields; list/get search retains name/path semantics.
Connection check rejects trustObtain the SFTP fingerprint independently and pass the documented check option.
Write preview is stale/busyClose FileZilla, reread state and regenerate/review the preview; do not bypass guards.

Use complete inputs, captured outputs and troubleshooting for precise cases.