Your first terminal transfer
Install Dockline, save a connection file and run a directory listing. Then upload and download one small file. You need an SFTP account and a verified server fingerprint; try the local demo if you do not have them yet.
Install
npm install --global @jalsoedesign/dockline-cli @jalsoedesign/dockline-sftp-client
dockline --helpInstall the CLI and protocol client together. Prefer a project-local installation? Use npm install without --global and prefix subsequent commands with npm exec --.
Save dockline.server.yml
Create this file in your current directory. It references environment variables rather than storing the password in YAML.
version: 1
connection:
protocol: sftp
host: ${SFTP_HOST}
username: ${SFTP_USERNAME}
password: ${SFTP_PASSWORD}
trust:
fingerprint: ${SFTP_SHA256}Set your own values in the same terminal. Obtain the fingerprint through a trusted channel; it is not your private authentication key.
$env:SFTP_HOST = "files.example.com"
$env:SFTP_USERNAME = "deploy"
$env:SFTP_PASSWORD = "your-password"
$env:SFTP_SHA256 = "SHA256:your-verified-server-fingerprint"export SFTP_HOST="files.example.com"
export SFTP_USERNAME="deploy"
export SFTP_PASSWORD="your-password"
export SFTP_SHA256="SHA256:your-verified-server-fingerprint"List the server directory
dockline list --path .Example human output, which varies with your server's files:
directory - reports
file 21 hello.txtColumns are type, size and path. Dockline reads dockline.server.yml automatically; the command succeeds with exit code 0. A listing does not change remote files.
Upload a file
Create the same short input in either shell:
Set-Content -LiteralPath hello.txt -Value "Hello from Dockline!" -NoNewlineprintf 'Hello from Dockline!' > hello.txtThis creates a 20-byte ASCII file. Choose a writable remote filename you intend to replace:
dockline upload --source-file hello.txt --destination-file dockline-hello.txtFor this input and a successful connection, output on Windows is shown below. <working-directory> stands for the actual absolute directory; macOS/Linux use / path separators:
Uploaded 20 bytes: <working-directory>\hello.txt -> dockline-hello.txtOrdinary uploads replace the remote filename. SFTP supports --overwrite fail when the destination must be new.
Download it again
dockline download --source-file dockline-hello.txt --destination-file downloaded-hello.txtWindows output for the same 20-byte input, with the absolute local path abbreviated:
Downloaded 20 bytes: dockline-hello.txt -> <working-directory>\downloaded-hello.txtDownloads refuse to replace an existing local file. To repeat deliberately, add --overwrite replace or choose a fresh destination. Local flag paths are relative to your terminal's current directory; remote paths are relative to the configured starting directory.
Use the result in a script
Add --json to get machine-readable output without progress mixed into stdout:
dockline upload --source-file hello.txt --destination-file dockline-hello.txt --jsonThe success object contains ok, command, sourceFile, destinationFile and bytesTransferred. Local paths in JSON are resolved absolute paths. Always check the process exit status. See JSON and failures for the complete contract.
Next steps
Use private keys, configure a remote root or retry limits, or select FTP/FTPS by installing @jalsoedesign/dockline-ftp-client and changing the protocol/configuration. Command reference documents exact flags and overwrite behavior; troubleshooting covers connection failures.