Browse docs
Docs / CLI Reference / swarmfile-engine lfs-transfer
View as Markdown

swarmfile-engine lfs-transfer

On this page

lfs-transfer is the Desktop App's built-in git-LFS custom transfer agent. git-lfs invokes it; it is not a command you run by hand. Point lfs.url at your Swarmfile repository and set git-lfs to use this agent as the transfer, and pushes ride it chunked and resumable (up to the 256 GiB object cap), while pulls use the plain resumable GET path.

It ships as a subcommand of the engine: swarmfile-engine lfs-transfer (the engine binary is part of every desktop install). There is no separate swarmfile-lfs-transfer binary to install.

Don't confuse it with swarmfile-lfs, the standalone open-source agent (and reflect tool) for stock git-lfs. It ships on PATH with every desktop install, and machines without the app install it with cargo install swarmfile-lfs-transfer (the crates.io package is named swarmfile-lfs-transfer, but the binary it installs is swarmfile-lfs) or curl -fsSL https://get.swarmfile.com/lfs | sh. Its source and releases are at swarmfile-lfs. For most setups swarmfile-lfs install is the simpler path; the git-LFS guide compares the two agents.

How git-lfs calls it#

git-lfs spawns a configured custom transfer agent with an operation and remote, and talks to it over stdio (the LFS transfer protocol). It takes no flags of its own. Configure it per repository by pointing git-lfs at the engine binary:

git config lfs.url "https://hub.swarmfile.com/orgs/<org>/lfs/<repository>"
git config lfs.standalonetransferagent swarmfile-chunked
git config lfs.customtransfer.swarmfile-chunked.path swarmfile-engine
git config lfs.customtransfer.swarmfile-chunked.args lfs-transfer

swarmfile-engine lfs-transfer --help prints the same setup and exits without starting the protocol.

See git-LFS for the full setup, the .lfsconfig auto-PR flow, and how LFS objects are billed and reflected onto the mount.

Notes#

  • LFS bytes are metered and storage-billed like any other content - there is no separate LFS SKU.
  • On a managed (encrypted) repository, uploads must go through the transfer agent - this one or the standalone swarmfile-lfs - so objects are encrypted at rest. The stock direct paths are refused with the typed lfs_agent_required error. On an unencrypted repository the direct paths remain available (plaintext by definition). E2E repositories refuse LFS outright. Objects a managed repository stored before the agent requirement are converted by an operator-run migration before you can say every object is encrypted (see the git-LFS guide's older-objects note).
  • Because it is spawned by git-lfs, there is nothing to run interactively; if you need a human-facing status, use the mount or swarmfile status.

Something wrong or missing? Report a docs issue.