The skylane command line
skylane is Skylane's command-line client, for transfers on servers and in scripts. skylane --help and skylane <command> --help list every command and option.
Installing
The command line is a program of its own, not part of the desktop client's installer. Get it from the "Command line: skylane" section at the bottom of the portal's "Download the client" page, which shows the same install commands as below (with your platform's address in place of https://skylane.example.com).
On Linux or macOS, run in a terminal:
curl -fsSL https://skylane.example.com/api/v1/install-cli.sh | sh
It downloads skylane for this system and architecture, checks its size and SHA-256, and installs it as /usr/local/bin/skylane, with sudo when it cannot write there (it asks for this computer's password). To install it elsewhere, give the directory: curl -fsSL …/install-cli.sh | SKYLANE_INSTALL_DIR=$HOME/.local/bin sh.
On Windows, run in PowerShell:
irm https://skylane.example.com/api/v1/install-cli.ps1 | iex
It installs %LOCALAPPDATA%\Programs\Skylane\cli\skylane.exe and adds that directory to your user's PATH: skylane works in new terminals.
You can also download the program itself in that section (named skylane-<version>-<system>-<architecture>, for example skylane-0.3.9-linux-amd64), rename it to skylane (skylane.exe on Windows) and put it in a directory on your PATH; on Linux and macOS also chmod +x skylane. On macOS, a program downloaded with a browser is stopped the first time it runs ("the developer cannot be verified"): run xattr -d com.apple.quarantine skylane once. One installed with the command above is not.
Running the install command again replaces it with the newest version on the platform. skylane --version shows the version you have.
--engine also needs skylane-engine: the portal does not offer it; the platform's operator provides it. Rename skylane-engine-<system>-<architecture> for the same system to skylane-engine and put it in the same directory as skylane.
Logging in
skylane login https://skylane.example.com --user alice
- Type the password in the terminal, or read it from a file with
--password-file FILE(-is standard input). Do not put the password on the command line. - When the first login needs a new password, type the new one on another line, or use
--new-password-file. --org IDenters that organisation; without it you enter the organisation you used last, or the only one you belong to. In scripts, always give--org.--ssouses the organisation's single sign-on: you log in in the system's browser. On a machine without a browser add--no-browser: the command only prints the address, to open on another computer.- When a private deployment's platform does not use a public certificate, add
--ca platform-cert.pem. skylane logoutlogs out and deletes the login kept on this machine.
Organisations
skylane orgs # the organisations you are in; * is the current one
skylane org use beta # the commands after this one work in beta
skylane ls / --org acme # only this command uses acme
The ACCESS column of orgs: password and sso mean that org use verifies you once more; unavailable means the membership or the organisation is disabled.
Paths and storage points
Remote paths are written [storage-point:]path, for example /reports/2026 or syd-cos:/reports. Without a storage point, the default one is used:
skylane storage-points # the storage points the organisation can use (short: sp)
skylane config set location syd-cos # the default storage point (none: the organisation's default)
skylane config set node auto # the transfer node group (auto: picked for you)
skylane config show
Browsing and organising
skylane ls /reports # list a directory; -r lists everything below it
skylane mkdir /reports/2026 # creates the parent directories too
skylane mv /a.txt /archive/ # ending in /: into that directory, same name
skylane cp /reports /backup # copied on the storage side, not through your computer
skylane rm --trash /old.txt # into the recycle bin; -r deletes a directory
skylane quota # the organisation's quota and usage this month
mv -n and cp -n do not replace existing files.
Uploading and downloading
skylane put ./photos ./notes.txt /incoming # local files and directories into a remote directory
skylane get /reports/2026 ./reports # remote files and directories into a local directory
Common options (both put and get):
| Option | What it does |
|---|---|
--overwrite |
When the destination has a file of the same name: different (the default; skipped when the size and CRC-64 are both the same), always, never |
--mode |
auto (the default: Skylane Transfer Protocol (based on UDP) first, the node's HTTPS gateway when it does not get through), udp (Skylane Transfer Protocol only), https |
--rate |
The target rate, for example 500m or 2g; by default the highest rate the node allows |
--policy |
fair (the default: adaptive, shares the line fairly with other traffic), low (gives way to other traffic), fixed (always the target rate) |
--min-rate |
fair and low stay at this rate or above |
--guards |
turn on the receiver's guards, comma-separated: police (slow down on heavy loss), queue (fixed: slow down when the line queues); both off by default, Skylane Transfer Protocol only, the same as the two switches on the desktop client's Settings page |
--node |
The node group for this transfer |
-v |
Lists every file |
--fsync |
get only: each file is flushed to disk before it is renamed, so a power cut loses nothing; a little slower |
When a transfer of files of 64 MiB or more over Skylane Transfer Protocol is interrupted, running the same command again goes on from where it stopped.
Syncing directories
sync, copy and check move only what changed: suited to work done again and again, such as a nightly backup or publishing a web site's directory. The sync logic is based on the open-source rclone, and the options have rclone's names and meanings; the data still goes through Skylane's engine, over Skylane Transfer Protocol or HTTPS by --mode, as with put and get.
skylane sync ./site syd-cos:/www # make the remote the same as the local: move what changed, delete what the remote has more
skylane copy :/reports ./reports # move what changed, delete nothing
skylane check ./site syd-cos:/www # only compare: what is missing, extra or different
- One side is a local directory, the other a remote one. The remote side needs its colon:
STORAGE-POINT:PATH, or:PATHon the default storage point. On WindowsC:\dataandD:/backupare local drives. - A path without a storage point and without a colon is local (unlike
putandget). copymoves the differences between your computer and a storage point;cpcopies within a storage point: they are different commands.- Remote files
syncdeletes go to the recycle bin;--no-trashdeletes them for good. Local files are deleted directly. - By default a file has changed when its size or modification time differs;
--checksum(-c) compares the size and CRC-64 instead, reading the local files. - Transfer grants are asked for as the files need them, so a run of any length does not stop on an expired token; when the quota or balance left is not enough, the run stops at once and says why.
Common options (all as in rclone):
| Option | What it does |
|---|---|
--dry-run (-n) |
Says what would be done, moves and deletes nothing |
--exclude, --include, --filter, --exclude-from and the like |
Filter rules, for example --exclude "*.tmp" |
--min-size, --max-size, --min-age, --max-age, --max-depth |
Pick by size, modification time, directory depth |
--checksum, --size-only, --update, --ignore-existing |
How to tell whether a file needs moving |
--delete-before, --delete-during, --delete-after (the default), --max-delete |
When sync deletes, and at most how many |
--backup-dir |
Files that would be overwritten or deleted are moved here first (on the destination's side) |
--transfers |
How many files at once; by default 256 over Skylane Transfer Protocol, 4 over HTTPS |
--progress (-P), -v, --log-file |
Show the progress, a line per file, the log to a file |
--mode, --rate, --policy, --min-rate, --guards and --node are those of put and get. check also has --one-way, --differ FILE, --missing-on-dst FILE and others that write the results to files.
The last line sums up how many files and bytes moved, the time and the rate, how many were deleted and how many failed. When files still fail after the retries, or check finds differences, the exit status is 4.
The background engine
With --engine, the command line's own background engine does the transfer (separate from the desktop client's engine). It has a job layer: failed files are retried by themselves, and it switches to HTTPS when Skylane Transfer Protocol does not get through. When the engine is not running it starts by itself, and it stays after the command for the next one.
The command still waits until the transfer is done, then prints the summary and exits; Ctrl-C cancels the transfer. When the transfer has to wait for quota or balance, the command cancels it and reports an error.
skylane put --engine ./big /incoming
skylane engine status # whether the engine runs, its version and its transfers
skylane engine stop # does not stop while transfers are queued or running, unless --force
The shared line bandwidth
Transfers running at once in one engine together send no more than the line carries, split by their rate policies. The background engine's (--engine) transfers share it with each other; a command without --engine has its own engine and shares the line only among its own transfers, not with other commands or the background engine. To have several commands running at once share the line, give them all --engine. The desktop client's engine is another: its "My line's bandwidth" is kept apart from these settings, and the transfers of the two do not know about each other.
The settings are kept in the command line's engine directory (link.json). While the background engine runs they go through it and apply to its running transfers at once; later commands follow them too.
skylane link # the settings; with the background engine running, the line it measured and how many transfers use it
skylane link set --down 1g --up 50m # set the line (both); a ceiling: when it measures lower the lower is used
skylane link set --reserve 10 # leave 10% of the line set to other programs (0 to 50)
skylane link set --auto # measure it again
skylane link set --off # do not share: each transfer runs at its own --rate (--on turns it on)
Recycle bin
skylane trash ls # the files in the recycle bin, newest first
skylane trash restore <recycle-path> # back where they were; write the path as trash ls shows it
skylane trash purge <recycle-path> # delete for good
Files deleted in the desktop client are here too.
For other S3 tools
skylane gateway /incoming --upload --bytes 10g --ca-file node-ca.pem
Asks the platform for a transfer grant and returns temporary credentials for a node's S3 gateway (JSON), for S3 tools such as the aws CLI (to sync directories in a network that blocks UDP, skylane sync above is simpler: its credentials renew themselves and do not expire half-way): send path-style requests to the endpoint and bucket given, with keys below the path given, and the session token on every request. Uploads stay within --bytes, which counts against the quota. When the credentials expire, --renew TRANSFER-ID gets new ones.
- The endpoint's certificate is signed by the platform's node CA:
--ca-filewrites it to a file for the tool (rclone's--ca-cert, the aws CLI's--ca-bundle). - Upload credentials write and
HEADbut do not list; download credentials read and list. So another tool cannot upload only the differences with upload credentials (rclone'ssynclists the destination first): to sync by differences, useskylane sync. - Listing is ListObjectsV2 only: for rclone, an s3 remote with
provider = Other,list_version = 2,force_path_style = true,no_check_bucket = true.
Access keys
skylane keys create --sp tokyo --prefix projects/a --perm read-write --expires 90d --name nas --rclone
skylane keys ls
skylane keys show SKA… --secret
skylane keys rm SKA…
skylane keys endpoints
S3 access keys are long-lived AK/SK pairs for tools such as rclone and the aws CLI to use directly through a node group's gateway host, with nothing to renew (see Access keys). Unlike the temporary credentials of skylane gateway above, a key works both ways, may list, and the gateway host has a public certificate: the tool needs no extra CA.
create:--spone or more storage points (required);--prefixa path prefix;--permisread(the default),read-writeorread-write-delete, never more than your rights;--expiressuch as90d,12h,2027-01-31;--grouponly through these node groups;--rclonealso prints an rclone section. The secret access key goes to standard output: keep it safe.show --secretshows the secret again. Creating and viewing ask you to verify again first: your password (or--password-file), or, when the organisation uses single sign-on only, the browser (--no-browseronly prints the address). Every view is audited and e-mailed to you.endpoints: the gateway hosts you may use, per storage point: node group, location and load.- The endpoint is
https://<gateway host>, the bucket is the storage point's ID, path-style, any region.
Output and exit codes
--json prints JSON instead of tables, for scripts to parse.
| Exit code | Meaning |
|---|---|
| 0 | Done |
| 1 | Another error (network, node, local files…) |
| 2 | The command line is wrong |
| 3 | Not logged in, or the login ended: skylane login |
| 4 | Some files failed; running it again may work |
| 5 | The platform refused (quota, balance, rights, not found…) |
| 130 | Interrupted (Ctrl-C) |