Write and sync profiles
Inspect availability, save a preview, review it, then apply it as a separate step. Planning changes no native settings.
Inspect the destination
Select the Site Manager XML file on the host:
filezilla-js write-status --file sitemanager.xml --jsonThe result describes whether the destination can be written. Captured status output shows the JSON shape; inspecting availability does not apply changes.
Save a preview
Prepare supported normalized intent in profiles.json, using a normalized profile source. Native query JSON and compact list results are different representations and are not write intent.
filezilla-js write --file sitemanager.xml --input profiles.json --preview plan.json --jsonThis reads the selected XML destination and saves the proposed changes to plan.json on the host. It leaves native settings unchanged and refuses to replace an existing preview. Compare the changes and diagnostics before proceeding; see captured preview output.
Sync from another source
Install the selected allowlisted source adapter and use sync --from <application> with an explicit source selector and exact profile/connection. Sync produces a preview; stored secrets, key contents and host trust policies are excluded. Complete inputs lists the supported selectors and flags.
Apply the reviewed preview
This step changes the selected XML file. Keep FileZilla closed throughout apply. Built-in commits require Windows and refuse busy or unknown availability.
filezilla-js apply --file sitemanager.xml --plan plan.json --jsonSafeguards and recovery
Apply rechecks source identity/revision, native process/lock availability and preview integrity, and retains protected backups. Backups can contain original credentials. An inspection or earlier preview does not bypass these checks. See native safeguards, captured refusals, and Portline recovery details.
Execution settings and write intent
Normalized profiles now retain more execution settings than native writers can save. The writer refuses profiles with nonempty unsupportedOptions, an explicit boolean passive setting, filenameEncoding, or saved host fingerprint pins. It does not silently discard those requirements. A default passive: null may be omitted. Use an intentionally constructed write profile containing only supported intent; keep the complete original definition for execution.
Password-prompt authentication is represented by prompt-password, separately from keyboard-interactive interactive. Credential references and values are omitted from preview artifacts; saved host trust is never copied as an approval. See Portline writing limits.