Skip to content

WinSCP JS API ​

Read WinSCP sessions from INI files, registry exports or the Windows registry. Inspect endpoints, key paths and remote directories, then preview supported native profile changes.

Get a working result ​

The API quick start creates synthetic native settings, reads them through the public library, selects one profile and searches by host. Its code and captured output are shown together. No application installation or remote account is needed.

Install @jalsoedesign/winscp-core to use the library. The separate @jalsoedesign/winscp-cli installs the terminal command. See installation for runtime requirements.

Learn by task ​

TaskDocumentation
Read a file and understand the returned metadataQuick start
List, select and search profilesEveryday profile queries
Find and select native storageStorage and discovery
Preview supported changes and cross-app syncWriting guide
Use a selected profile in your own integrationExecution boundary
Look up parameters, return values and exportsAPI reference and TypeScript signatures

SFTP/FTP profile projection does not turn unsupported SCP, WebDAV or S3 settings into supported transfers. Dockline separately provides transport execution.

Application adapters retain native provenance and diagnostics. Portline supplies shared contracts/querying/writer guards; Dockline is a separate execution library. For terminal commands, switch to the CLI documentation.

Connect through the shared integration ​

Use shared FTP/SFTP and SSH execution to reuse a selected normalized profile with @jalsoedesign/portline-dockline. The guide includes reader-specific source creation, optional client installation, scoped cleanup and trust/authentication requirements. Native readers do not open connections while listing profiles.