Skip to content

API documentation ​

Use Node.js to transfer files over FTP, FTPS or SFTP, or run commands over SSH. The API returns promises, streams and metadata; examples print results explicitly so completion is visible.

Get a first result ​

StepWhat you will do
Install the packagesSelect core and a protocol client, or the independent SSH client.
Connect and list filesSave one file, set connection variables, run it and compare output.
Try a local server insteadRun disposable fixtures when no server account is available.
Choose an example languageUse TypeScript by default or matching JavaScript, MJS and CommonJS tabs.

Common tasks ​

TaskGuide
Upload, download, list, rename and remove filesEveryday file operations
Transfer a file over FTP or FTPSFTP walkthrough
Transfer a file over SFTPSFTP walkthrough
Connect a saved application profile through the common bridgeSaved-profile integration
Run a remote command and read its exit statusSSH walkthrough
Build or embed a terminal commandCLI integration
Inspect or convert keys without a connectionKeys documentation

Add control when needed ​

After the first operation works, configure passwords, keys or agents, verified host trust, timeouts and transfer limits, streams and session ownership, publication and checksums, and connection pools. Use typed errors to choose recovery behavior.

Look up a contract ​

Methods and defaults explain behavior. TypeScript declarations list exact exported signatures. Packages and architecture explain the independently usable clients and shared contracts.