Skip to content

Complete CLI input reference ​

The help below is captured from the built executable. It is paired with the output reference. Commands and flags remain application-specific.

winscp-js --help ​

text
Usage: winscp-js <command> [options] [args]

Commands: search <term>, list, get <path> [property], source, write, sync, apply, write-status, sources
Options: --json, --table, --full, --recurse, --search <term>, --show-password, --help
--source: Select a discovered source ID
--executable: Inspect storage beside an application executable
--directory: Portable session directory
--registry: HKCU or HKLM session registry key
--registry-view: 32, 64 or default registry view

Uses the global command syntax and options shown above. See the command guide for usage.

list ​

Uses the global command syntax and options shown above. See the command guide for usage.

get ​

Uses the global command syntax and options shown above. See the command guide for usage.

source ​

Uses the global command syntax and options shown above. See the command guide for usage.

write ​

text
write-status [destination options]: inspect process, lock and registry capability diagnostics
Registry policy: --registry-mode transactional|guarded (repeat with apply; no automatic fallback)
write --input profiles.json --preview new-plan.json [destination options]
sync --from <application> --profile <path> --target-path <path> --preview new-plan.json
apply --plan new-plan.json [the same explicit destination and policy options]
Previews never apply writes. Applications must be closed; unknown state and native locks block apply.
Modes: --mode create|update|upsert. Stored secrets are never copied. No force/lock bypass is provided.

sync ​

text
write-status [destination options]: inspect process, lock and registry capability diagnostics
Registry policy: --registry-mode transactional|guarded (repeat with apply; no automatic fallback)
write --input profiles.json --preview new-plan.json [destination options]
sync --from <application> --profile <path> --target-path <path> --preview new-plan.json
apply --plan new-plan.json [the same explicit destination and policy options]
Previews never apply writes. Applications must be closed; unknown state and native locks block apply.
Modes: --mode create|update|upsert. Stored secrets are never copied. No force/lock bypass is provided.

apply ​

text
write-status [destination options]: inspect process, lock and registry capability diagnostics
Registry policy: --registry-mode transactional|guarded (repeat with apply; no automatic fallback)
write --input profiles.json --preview new-plan.json [destination options]
sync --from <application> --profile <path> --target-path <path> --preview new-plan.json
apply --plan new-plan.json [the same explicit destination and policy options]
Previews never apply writes. Applications must be closed; unknown state and native locks block apply.
Modes: --mode create|update|upsert. Stored secrets are never copied. No force/lock bypass is provided.

write-status ​

text
write-status [destination options]: inspect process, lock and registry capability diagnostics
Registry policy: --registry-mode transactional|guarded (repeat with apply; no automatic fallback)
write --input profiles.json --preview new-plan.json [destination options]
sync --from <application> --profile <path> --target-path <path> --preview new-plan.json
apply --plan new-plan.json [the same explicit destination and policy options]
Previews never apply writes. Applications must be closed; unknown state and native locks block apply.
Modes: --mode create|update|upsert. Stored secrets are never copied. No force/lock bypass is provided.

sources ​

text
Use sources --json to inspect candidates; select with --source <id> or an explicit source path.

Declared source and write options ​

These rows come from the CLI source option definitions and shared write option contract. Arguments taking values are described in the command reference.

OptionMeaning
--sourceSelect a discovered source ID
--executableInspect storage beside an application executable
--directoryPortable session directory
--registryHKCU or HKLM session registry key
--registry-view32, 64 or default registry view
--registry-modetransactional (default) or explicit non-atomic guarded registry mode
--inputNormalized profile/mutations JSON
--previewSave a new preview JSON file (never applies it)
--planSaved preview for explicit apply
--modecreate (default), update or upsert
--allow-lossyAcknowledge listed directory/metadata omissions
--fromSource application for one-way sync
--from-fileSource native configuration file
--from-directorySource portable directory
--from-registrySource session registry key
--from-configSource JetBrains IDE config
--from-projectSource JetBrains project
--profileExact source profile path
--target-pathExact destination profile path
--connectionSelected source connection ID
--scopeJetBrains destination global or project scope