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
| Step | What you will do |
|---|---|
| Install the packages | Select core and a protocol client, or the independent SSH client. |
| Connect and list files | Save one file, set connection variables, run it and compare output. |
| Try a local server instead | Run disposable fixtures when no server account is available. |
| Choose an example language | Use TypeScript by default or matching JavaScript, MJS and CommonJS tabs. |
Common tasks
| Task | Guide |
|---|---|
| Upload, download, list, rename and remove files | Everyday file operations |
| Transfer a file over FTP or FTPS | FTP walkthrough |
| Transfer a file over SFTP | SFTP walkthrough |
| Connect a saved application profile through the common bridge | Saved-profile integration |
| Run a remote command and read its exit status | SSH walkthrough |
| Build or embed a terminal command | CLI integration |
| Inspect or convert keys without a connection | Keys 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.