Skip to content

download ​

Run this command ​

First follow CLI setup, saving the connection as server.yml. The command below uses that connection. The local FTP fixture captures the 21-byte example output shown here without requiring an external server. Its directory contents are controlled; an existing server can return different entries and paths.

After uploading the sample, the server contains hello.txt with 21 bytes.

This downloads server source hello.txt to host destination output.txt. Choose a host path that does not already exist.

sh
dockline download -s hello.txt -d output.txt --config server.yml --json

Get this output ​

Exit code: 0. JSON is written to stdout without terminal colours or progress. Temporary absolute paths are shown as <temporary-directory>; actual values depend on the machine.

json
{
    "ok": true,
    "command": "download",
    "sourceFile": "hello.txt",
    "destinationFile": "<temporary-directory>\\output.txt",
    "bytesTransferred": 21
}

Defaults and options ​

Download defaults to --overwrite fail; use --overwrite replace for an intended replacement. The CLI creates missing local parents, stages the content and publishes after completion. Byte limits are configured in YAML.

Flags override YAML command/default values. Local flag paths are relative to your working directory; YAML local paths are relative to its file. Remote paths use the configured root, with absolute remote paths translated by the CLI. See the complete download options.

Human output and failures ​

Omit --json for human output. Dockline currently prints plain transfer/list text; the docs do not add colours the executable does not emit. --quiet suppresses routine success/progress, but retains listing data and errors. --json takes precedence.

Usage/configuration errors exit 2; connection, trust and operation failures exit 1; cancellation exits 130. Output contracts explain stdout/stderr and the failure object. Troubleshooting covers recovery.

Next: remove the sample.