aeroftp-cli
Select a command to see its arguments, options and recorded offline demos. Press ⌘K to search.
Select a command to see its arguments, options and recorded offline demos. Press ⌘K to search.
CLI version: 4.2.5 · 99 commands. Machine-readable JSON: https://www.aeroftp.app/assets/cli-explorer/cli-spec.json
Categories: safe
Summary: Show detailed server info, account, and storage quota
Description: Show detailed server info, account, and storage quota
Syntax: aeroftp-cli about [OPTIONS] [URL]
-h, --help: Print help (see a summary with '-h')Inspect `about` (offline help)
aeroftp-cli help aboutShow detailed server info, account, and storage quota
Usage: aeroftp-cli about [OPTIONS] [URL]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: Set OpenDrive privacy of an existing file/folder (#252)
Description: Issue #252: set the privacy level of an EXISTING file or folder on providers that model access (OpenDrive). The CLI counterpart of the GUI Properties > Permissions tab; file-vs-folder is detected via `stat`
Syntax: aeroftp-cli access --profile NAME /path --to public|private|hidden
--to : Privacy level to set: private, public, or hidden Possible values: - private: Not listed, not shared; reachable only by the owner - public: Anyone with the link can access; searchable - hidden: Accessible by direct link only; not searchable-h, --help: Print help (see a summary with '-h')Inspect `access` (offline help)
aeroftp-cli help accessIssue #252: set the privacy level of an EXISTING file or folder on providers that model access (OpenDrive). The CLI counterpart of the GUI Properties > Permissions tab; file-vs-folder is detected via `stat`
Usage: aeroftp-cli access [OPTIONS] --to <TO> [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote path of the file or folder
[default: ""]
Options:
--to <TO>
Privacy level to set: private, public, or hidden
Possible values:
- private: Not listed, not shared; reachable only by the owner
- public: Anyone with the link can access; searchable
- hidden: Accessible by direct link only; not searchable
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: AeroCloud folder sync: configure and run the always-on cloud folder from the CLI.
Description: AeroCloud folder sync: configure and run the always-on cloud folder from the CLI.
Syntax: aeroftp-cli aerocloud [OPTIONS] <COMMAND>
-h, --help: Print help (see a summary with '-h')Inspect `aerocloud` (offline help)
aeroftp-cli help aerocloudAeroCloud folder sync: configure and run the always-on cloud folder from the CLI.
AeroCloud keeps one local folder mirrored with a remote folder on a saved profile (like Dropbox/Drive). The GUI configures it and a background worker runs it on a schedule; these subcommands expose the same config plus a one-shot `sync` so it is scriptable and headless-testable. `sync` needs the vault open (see `--master-password` / AEROFTP_MASTER_PASSWORD).
Usage: aeroftp-cli aerocloud [OPTIONS] <COMMAND>
Commands:
show Print the current AeroCloud configuration (folders, profile, direction, interval, enabled, versioning, last sync)
set Mutate the AeroCloud configuration. Only the flags you pass are changed; everything else is preserved. Writes the config to disk on success
enable Enable AeroCloud (sets enabled=true and saves)
disable Disable AeroCloud (sets enabled=false and saves)
status Synthetic, machine-friendly status: enabled, last sync, folder pair, direction
sync Run one synchronization cycle now (the same path the background worker uses). Requires the vault open and AeroCloud enabled
pair Subcommands for multiple AeroCloud pairs (cloud_pairs.json store). Each pair is independent (own profile, direction, excludes)
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: AeroRsync delta engine: configuration and live diagnostics
Description: AeroRsync delta engine: configuration and live diagnostics
Syntax: aeroftp-cli aerorsync [OPTIONS] <COMMAND>
-h, --help: Print help (see a summary with '-h')Inspect `aerorsync` (offline help)
aeroftp-cli help aerorsyncAeroRsync delta engine: configuration and live diagnostics
Mirrors the Settings > Native Rsync toggle (Auto / Classic / Native) from the GUI and exposes a probe for the password transport (Z.4.5 R1) so an SSH endpoint can be smoke-tested without going through the full provider stack.
Usage: aeroftp-cli aerorsync [OPTIONS] <COMMAND>
Commands:
mode Get or set the AeroRsync mode (auto / classic / native)
probe Live probe of the russh password transport against an SSH endpoint
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: AeroAgent - AI-powered interactive agent with tool execution
Description: AeroAgent - AI-powered interactive agent with tool execution
Syntax: aeroftp-cli agent [OPTIONS]
-m, --message : One-shot message (run and exit)-p, --provider : AI provider (anthropic, openai, gemini, ollama, etc.)--model : Model override-c, --connect : Pre-connect to server on startup--auto-approve : Auto-approve tool calls: safe, medium, high, all (default: safe)--max-steps : Max autonomous steps (default: 10) (default: 10)--orchestrate: Orchestration mode (JSON-RPC 2.0 over stdin/stdout)--mcp: MCP server mode (Model Context Protocol)--stdin: Read message from stdin-y, --yes: Auto-approve all tools (equivalent to --auto-approve all)--plan-only: Plan only - show execution plan without running--token-limit : Stop the agent once its tokens (input, output and prompt cache, as the provider counts them) pass this number--system : Custom system prompt (or @file.txt to load from file)-h, --help: Print help (see a summary with '-h')Inspect `agent` (offline help)
aeroftp-cli help agentAeroAgent - AI-powered interactive agent with tool execution
Usage: aeroftp-cli agent [OPTIONS]
Options:
-m, --message <MESSAGE>
One-shot message (run and exit)
-p, --provider <PROVIDER>
AI provider (anthropic, openai, gemini, ollama, etc.)
--model <MODEL>
Model override
-c, --connect <CONNECT>
Pre-connect to server on startup
--auto-approve <AUTO_APPROVE>
Auto-approve tool calls: safe, medium, high, all
[default: safe]
--max-steps <MAX_STEPS>
Max autonomous steps (default: 10)
[default: 10]
--orchestrate
Orchestration mode (JSON-RPC 2.0 over stdin/stdout)
--mcp
MCP server mode (Model Context Protocol)
--stdin
Read message from stdin
-y, --yes
Auto-approve all tools (equivalent to --auto-approve all)
--plan-only
Plan only - show execution plan without running
--token-limit <TOKEN_LIMIT>
Stop the agent once its tokens (input, output and prompt cache, as the provider counts them) pass this number
--system <SYSTEM>
Custom system prompt (or @file.txt to load from file)
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Show the canonical task-oriented quick-start for AI agents
Description: Show the canonical task-oriented quick-start for AI agents
Syntax: aeroftp-cli agent-bootstrap [OPTIONS]
--task : Optional task focus for tailored commands [possible values: explore, verify-file, transfer, backup, reconcile]--path : Remote path or working path for the task--pattern : Optional filename or glob pattern--source-profile : Source profile for transfer/backup flows--dest-profile : Destination profile for transfer/backup flows--source-path : Source remote path for transfer/backup flows--dest-path : Destination remote path for transfer/backup flows--local-path : Local path for local-vs-remote verification flows--remote-path : Remote path for local-vs-remote verification flows-h, --help: Print help (see a summary with '-h')Inspect `agent-bootstrap` (offline help)
aeroftp-cli help agent-bootstrapShow the canonical task-oriented quick-start for AI agents
Usage: aeroftp-cli agent-bootstrap [OPTIONS]
Options:
--task <TASK>
Optional task focus for tailored commands
[possible values: explore, verify-file, transfer, backup, reconcile]
--path <PATH>
Remote path or working path for the task
--pattern <PATTERN>
Optional filename or glob pattern
--source-profile <SOURCE_PROFILE>
Source profile for transfer/backup flows
--dest-profile <DEST_PROFILE>
Destination profile for transfer/backup flows
--source-path <SOURCE_PATH>
Source remote path for transfer/backup flows
--dest-path <DEST_PATH>
Destination remote path for transfer/backup flows
--local-path <LOCAL_PATH>
Local path for local-vs-remote verification flows
--remote-path <REMOTE_PATH>
Remote path for local-vs-remote verification flows
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Single-shot connect surface for agents: returns per-block status (connect/capabilities/quota/path) in one JSON call. Replaces the boilerplate `connect → about → df → ls /` sequence.
Description: Single-shot connect surface for agents: returns per-block status (connect/capabilities/quota/path) in one JSON call. Replaces the boilerplate `connect → about → df → ls /` sequence.
Syntax: aeroftp-cli agent-connect [OPTIONS] <PROFILE>
-h, --help: Print help (see a summary with '-h')Inspect `agent-connect` (offline help)
aeroftp-cli help agent-connectSingle-shot connect surface for agents: returns per-block status (connect/capabilities/quota/path) in one JSON call. Replaces the boilerplate `connect → about → df → ls /` sequence.
Live-connect allowlist: FTP, FTPS, SFTP, WebDAV, S3, GitHub, GitLab. For other protocols (pCloud, Dropbox, OneDrive, Box, Filen, MEGA, Koofr, kDrive, Jottacloud, Drime, FileLu, Yandex, 4shared, Internxt, Swift, Azure, Google Drive, ZohoWorkDrive, Immich) the response still includes valid `capabilities`, `path`, and `profile` blocks; only the `connect` block reports `status: "unsupported"` and the CLI returns exit code 0: the payload is still actionable, just use protocol-specific commands like `link`, `ls`, `put` directly.
Exit codes: 0 = ok or unsupported (capabilities valid), 1 = connect tried and failed, 2 = profile lookup failed.
Usage: aeroftp-cli agent-connect [OPTIONS] <PROFILE>
Arguments:
<PROFILE>
Profile name or ID (exact match preferred; unique substring also accepted)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Show machine-readable CLI capabilities
Description: Show CLI capabilities for AI agent discovery (always JSON)
Syntax: aeroftp-cli agent-info --json
--redact-identifiers: Redact per-profile host and username identifiers (PRIV-01). Use when a large agent context only needs tool discovery, not account metadata; the full identifiers stay available via `profiles --json`-h, --help: Print help (see a summary with '-h')Inspect `agent-info` (offline help)
aeroftp-cli help agent-infoShow CLI capabilities for AI agent discovery (always JSON)
Usage: aeroftp-cli agent-info [OPTIONS]
Options:
--redact-identifiers
Redact per-profile host and username identifiers (PRIV-01). Use when a large agent context only needs tool discovery, not account metadata; the full identifiers stay available via `profiles --json`
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: List configured AI providers and models from the encrypted vault
Description: List configured AI providers and models from the encrypted vault
Syntax: aeroftp-cli ai-models [OPTIONS]
-h, --help: Print help (see a summary with '-h')Inspect `ai-models` (offline help)
aeroftp-cli help ai-modelsList configured AI providers and models from the encrypted vault
Usage: aeroftp-cli ai-models [OPTIONS]
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: Manage CLI aliases stored in config.toml
Description: Manage CLI aliases stored in config.toml
Syntax: aeroftp-cli alias [OPTIONS] <COMMAND>
-h, --help: Print help (see a summary with '-h')Inspect `alias` (offline help)
aeroftp-cli help aliasManage CLI aliases stored in config.toml
Usage: aeroftp-cli alias [OPTIONS] <COMMAND>
Commands:
set Set or update an alias
remove Remove an alias
show Show one alias
list List all aliases
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: Toggle an opt-in shell alias (default: aero) on or off
Description: Toggle an opt-in shell alias (default: aero) on or off
Syntax: aeroftp-cli alias-toggle [OPTIONS] [NAME]
--bin-dir : Override the target directory (default: ~/.local/bin on Unix, %LOCALAPPDATA%\AeroFTP\bin on Windows)-h, --help: Print help (see a summary with '-h')Inspect `alias-toggle` (offline help)
aeroftp-cli help alias-toggleToggle an opt-in shell alias (default: aero) on or off
Creates or removes a symlink in the user's local bin directory that points back at the dispatcher. The same command both enables and disables the alias: running it twice returns to the original state. Prints exactly one confirmation line: "The '<name>' alias is now On" or "The '<name>' alias is now Off". Idempotent, exit code 0 in both directions.
Usage: aeroftp-cli alias-toggle [OPTIONS] [NAME]
Arguments:
[NAME]
Alias name to toggle (default: aero)
[default: aero]
Options:
--bin-dir <BIN_DIR>
Override the target directory (default: ~/.local/bin on Unix, %LOCALAPPDATA%\AeroFTP\bin on Windows)
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Plaintext archive operations for `.aerozip` (application/x-aerozip).
Description: Plaintext archive operations for `.aerozip` (application/x-aerozip).
Syntax: aeroftp-cli archive [OPTIONS] <COMMAND>
-h, --help: Print help (see a summary with '-h')Inspect `archive` (offline help)
aeroftp-cli help archivePlaintext archive operations for `.aerozip` (application/x-aerozip).
Creates, extracts, and lists passwordless archives backed by the aerovz lane: compression + integrity + Reed-Solomon recovery, not confidentiality.
Usage: aeroftp-cli archive [OPTIONS] <COMMAND>
Commands:
create Create an unencrypted `.aerozip` archive (application/x-aerozip)
extract Extract an unencrypted `.aerozip` archive
list List entries in an unencrypted `.aerozip` archive
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: safe
Summary: Run autonomous server audits across saved profiles (M3)
Description: Run autonomous server audits across saved profiles (M3)
Syntax: aeroftp-cli audit [OPTIONS] <COMMAND>
-h, --help: Print help (see a summary with '-h')Inspect `audit` (offline help)
aeroftp-cli help auditRun autonomous server audits across saved profiles (M3)
Predefined check types perform deterministic, parallel audits over a glob of vault-saved server profiles. Output is JSON or markdown, with exit codes signalling severity (0=ok, 1=warning, 2=critical/error, 3=audit configuration error). Designed for cron and monitoring pipelines without exposing credentials.
Usage: aeroftp-cli audit [OPTIONS] <COMMAND>
Commands:
storage-quota Cloud storage quota: alert when used/total ratio exceeds threshold
backup-freshness Backup freshness: newest file in path must be younger than max-age
file-exists File presence: verify a file exists and meets minimum size
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Run batch automation scripts
Description: Execute commands from a batch script (.aeroftp-script file). The `.aeroftp` extension is reserved for profile-export backups and is rejected here with a rename hint (issue #225)
Syntax: aeroftp-cli batch file.aeroftp-script
-h, --help: Print help (see a summary with '-h')Inspect `batch` (offline help)
aeroftp-cli help batchExecute commands from a batch script (.aeroftp-script file). The `.aeroftp` extension is reserved for profile-export backups and is rejected here with a rename hint (issue #225)
Usage: aeroftp-cli batch [OPTIONS] <FILE>
Arguments:
<FILE>
Path to the .aeroftp-script file, or "-" to read the script from standard input
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: safe
Summary: Run a community-driven benchmark across upload/download/list/stat operations. Output is sanitized: no hostnames, paths, credentials, or bucket names are recorded. Schema v1 contract in `docs/dev/roadm
Description: Run a community-driven benchmark across upload/download/list/stat operations. Output is sanitized: no hostnames, paths, credentials, or bucket names are recorded. Schema v1 contract in `docs/dev/roadmap/APPENDIX-BENCHMARK/01_JSON-Schema-v1.md`
Syntax: aeroftp-cli benchmark [OPTIONS] [LEVEL]
--sizes : Override single-file sweep sizes (comma-separated). A bare number is MEBIBYTES (e.g. "1,100,1024"); K/M/G suffixes are explicit (e.g. "1M,100M,1G")--runs : Override timed runs per (operation, size) tuple--operations : Comma-separated operations: upload,download,latency,list,stat,delete--consent-publish: Append anonymized environment metadata and print a paste-ready Issue block--anonymize-extra: Hash provider hint as well (extra anonymization)--report : Write the JSON report to a file--profile-timeout : Total benchmark timeout in seconds (default 3600). Bumps the cap for slow cold storage (idrive S3, InfiniCloud) so 1G transfers can finish without aborting mid-sweep--test-root-prefix : Custom remote prefix for the scratch tree (default: provider initial path joined with `aeroftp-bench`). Use this to redirect the bench payloads under a writable sub-path on providers that refuse operations on `/` (kDrive, SeaFile WebDAV)--pre-delete: Delete the remote payload between successive upload runs of the same size. Workaround for strict providers (4shared and several WebDAV servers) that reject overwrite-on-PUT--file-count : Many-small-files workload: number of files to exercise (e.g. 100, 1000). When > 0, runs a dedicated small-files benchmark on a separate axis (upload-all / download-all / list-dir / stat-all / delete-all) reporting files/sec and mean per-file time. This is the workload where per-file overhead (handshake, signing, metadata round-trips) dominates and S3 typically pulls ahead of WebDAV and FTP. On its own it replaces the single-file size sweep; add explicit --sizes to run both axes together--file-size : Size of each file in the many-small-files workload. A bare number is MEBIBYTES (e.g. 1 = 1 MiB, matching how chunk sizes are discussed); K/M/G suffixes are explicit (e.g. 64K, 4M). Defaults to 64K. Total payload (file-count x file-size) is capped at 5 GiB (default: 64K)--compare : Compare several saved profiles in one run: comma or space separated selectors (names, indices or ids, e.g. "S3 Blackblaze,S3 Storj"). Each profile runs the same workload, then the CLI prints a combined comparison table. Without this flag, benchmark runs the single profile from the global --profile-i, --interactive: Interactively type the profiles to compare: prints a numbered list of saved servers, then reads names and/or index numbers (space separated) from a prompt. Reuses the current benchmark options (level, --file-count, ...). For a full-screen checklist use --tui instead. Requires an interactive terminal--tui: Pick the profiles to compare from a full-screen checklist (tick the servers with Space/v, navigate with arrows or Tab, run with Enter). Reuses the current benchmark options (level, --file-count, ...). For inline name/index typing use -i instead. Requires an interactive terminal--group : Benchmark the members of one or more groups (the My Servers group chips). Repeatable and comma-aware: `--group A --group B` or `--group A,B`. Without -i/--tui every member of the named groups is benchmarked; with -i/--tui the picker is restricted to those members. Group membership is the same `config_server_groups` blob the GUI uses--all: Benchmark every saved profile (Ehud #277): the opt-in "all available" selection, so you never have to list them with --compare or tick them with -i/--tui. Combine with --group to run all members of those groups, or with -i/--tui to pre-tick the whole list. Profiles that fail to connect are reported as skipped, not fatal. `--all-profiles` is an accepted spelling: it pairs read-for-read with `--all-protocols`, and the two combine to benchmark every profile over every transport mode its provider offers.--all-protocols: Expand every selected profile into one run per transport mode of its provider (Ehud #277): a Koofr profile is benchmarked over both its REST API and its WebDAV surface, giving one comparison row and one mini table per mode, exactly as if you had saved a profile for each. Combines with --all, --compare, --group and the pickers. Modes whose credentials or endpoint cannot be resolved are reported as skipped, never measured as zero. Multi-mode providers: Koofr, OpenDrive, FileLu, Filen-h, --help: Print help (see a summary with '-h')Inspect `benchmark` (offline help)
aeroftp-cli help benchmarkRun a community-driven benchmark across upload/download/list/stat operations. Output is sanitized: no hostnames, paths, credentials, or bucket names are recorded. Schema v1 contract in `docs/dev/roadmap/APPENDIX-BENCHMARK/01_JSON-Schema-v1.md`
Usage: aeroftp-cli benchmark [OPTIONS] [LEVEL]
Arguments:
[LEVEL]
Preset level: quick (~30s, 10 MB), standard (~5min, 1M+100M+1G), deep (~30min, broader matrix), custom (everything overridable). Requires a saved profile via the global `--profile <name>` flag
[default: quick]
[possible values: quick, standard, deep, custom]
Options:
--sizes <SIZES>
Override single-file sweep sizes (comma-separated). A bare number is MEBIBYTES (e.g. "1,100,1024"); K/M/G suffixes are explicit (e.g. "1M,100M,1G")
--runs <RUNS>
Override timed runs per (operation, size) tuple
--operations <OPERATIONS>
Comma-separated operations: upload,download,latency,list,stat,delete
--consent-publish
Append anonymized environment metadata and print a paste-ready Issue block
--anonymize-extra
Hash provider hint as well (extra anonymization)
--report <REPORT>
Write the JSON report to a file
--profile-timeout <SECS>
Total benchmark timeout in seconds (default 3600). Bumps the cap for slow cold storage (idrive S3, InfiniCloud) so 1G transfers can finish without aborting mid-sweep
--test-root-prefix <PATH>
Custom remote prefix for the scratch tree (default: provider initial path joined with `aeroftp-bench`). Use this to redirect the bench payloads under a writable sub-path on providers that refuse operations on `/` (kDrive, SeaFile WebDAV)
--pre-delete
Delete the remote payload between successive upload runs of the same size. Workaround for strict providers (4shared and several WebDAV servers) that reject overwrite-on-PUT
--file-count <N>
Many-small-files workload: number of files to exercise (e.g. 100, 1000). When > 0, runs a dedicated small-files benchmark on a separate axis (upload-all / download-all / list-dir / stat-all / delete-all) reporting files/sec and mean per-file time. This is the workload where per-file overhead (handshake, signing, metadata round-trips) dominates and S3 typically pulls ahead of WebDAV and FTP. On its own it replaces the single-file size sweep; add explicit --sizes to run both axes together
--file-size <SIZE>
Size of each file in the many-small-files workload. A bare number is MEBIBYTES (e.g. 1 = 1 MiB, matching how chunk sizes are discussed); K/M/G suffixes are explicit (e.g. 64K, 4M). Defaults to 64K. Total payload (file-count x file-size) is capped at 5 GiB
[default: 64K]
--compare <PROFILES>
Compare several saved profiles in one run: comma or space separated selectors (names, indices or ids, e.g. "S3 Blackblaze,S3 Storj"). Each profile runs the same workload, then the CLI prints a combined comparison table. Without this flag, benchmark runs the single profile from the global --profile
-i, --interactive
Interactively type the profiles to compare: prints a numbered list of saved servers, then reads names and/or index numbers (space separated) from a prompt. Reuses the current benchmark options (level, --file-count, ...). For a full-screen checklist use --tui instead. Requires an interactive terminal
--tui
Pick the profiles to compare from a full-screen checklist (tick the servers with Space/v, navigate with arrows or Tab, run with Enter). Reuses the current benchmark options (level, --file-count, ...). For inline name/index typing use -i instead. Requires an interactive terminal
--group <GROUP>
Benchmark the members of one or more groups (the My Servers group chips). Repeatable and comma-aware: `--group A --group B` or `--group A,B`. Without -i/--tui every member of the named groups is benchmarked; with -i/--tui the picker is restricted to those members. Group membership is the same `config_server_groups` blob the GUI uses
--all
Benchmark every saved profile (Ehud #277): the opt-in "all available" selection, so you never have to list them with --compare or tick them with -i/--tui. Combine with --group to run all members of those groups, or with -i/--tui to pre-tick the whole list. Profiles that fail to connect are reported as skipped, not fatal.
`--all-profiles` is an accepted spelling: it pairs read-for-read with `--all-protocols`, and the two combine to benchmark every profile over every transport mode its provider offers.
--all-protocols
Expand every selected profile into one run per transport mode of its provider (Ehud #277): a Koofr profile is benchmarked over both its REST API and its WebDAV surface, giving one comparison row and one mini table per mode, exactly as if you had saved a profile for each. Combines with --all, --compare, --group and the pickers. Modes whose credentials or endpoint cannot be resolved are reported as skipped, never measured as zero. Multi-mode providers: Koofr, OpenDrive, FileLu, Filen
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: safe
Summary: Print file to stdout
Description: Print remote file to stdout (for piping)
Syntax: aeroftp-cli cat --profile NAME /path/file
-h, --help: Print help (see a summary with '-h')Inspect `cat` (offline help)
aeroftp-cli help catPrint remote file to stdout (for piping)
Usage: aeroftp-cli cat [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote file path
[default: ""]
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Browse the supported provider catalog (companies, protocols, free tier, regions)
Description: Browse the supported provider catalog (companies, protocols, free tier, regions)
Syntax: aeroftp-cli catalog [OPTIONS] [QUERY]
--category : Filter to one category: protocols, object-storage, webdav, cloud-storage, media-services, developer (aliases: s3, object, cloud, media, dev)--free: Show only companies with a free tier (at least one free method)--paid: Show only paid-only companies (no free connection method)--protocols: Expand to one row per connection method instead of per company-h, --help: Print help (see a summary with '-h')Inspect `catalog` (offline help)
aeroftp-cli help catalogBrowse the supported provider catalog (companies, protocols, free tier, regions)
Mirrors the GUI "Add Service" list view, generated from the same `providerCatalog.ts` single source of truth (embedded as `cli_catalog.json`, regenerated by `npm run gen:cli-catalog`). Purely local: no vault, no network. Use `--json` for the full structured data.
Usage: aeroftp-cli catalog [OPTIONS] [QUERY]
Arguments:
[QUERY]
Case-insensitive search over company, country, regions, protocol labels, provider ids and free-tier notes
Options:
--category <CATEGORY>
Filter to one category: protocols, object-storage, webdav, cloud-storage, media-services, developer (aliases: s3, object, cloud, media, dev)
--free
Show only companies with a free tier (at least one free method)
--paid
Show only paid-only companies (no free connection method)
--protocols
Expand to one row per connection method instead of per company
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Compare local and remote trees
Description: Verify local and remote directories are identical
Syntax: aeroftp-cli check --profile NAME ./local /remote
--checksum: Use checksums instead of size/mtime--one-way: Only check files present locally-h, --help: Print help (see a summary with '-h')Inspect `check` (offline help)
aeroftp-cli help checkVerify local and remote directories are identical
Usage: aeroftp-cli check [OPTIONS] [URL] [LOCAL] [REMOTE]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[LOCAL]
Local directory
[default: .]
[REMOTE]
Remote directory (default: where the profile starts; `/` is the root)
Options:
--checksum
Use checksums instead of size/mtime
--one-way
Only check files present locally
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Inspect and prune the multipart resume records (transfer checkpoints).
Description: Inspect and prune the multipart resume records (transfer checkpoints).
Syntax: aeroftp-cli checkpoints [OPTIONS] <COMMAND>
-h, --help: Print help (see a summary with '-h')Inspect `checkpoints` (offline help)
aeroftp-cli help checkpointsInspect and prune the multipart resume records (transfer checkpoints).
A resumable upload leaves a record so it can restart where it stopped. The TTL scavenger only prunes a record when the SAME endpoint is used again, so a server you stop using keeps its records until the store hits its cap, and the cap evicts terminal residue before resumable transfers. This is the explicit escape for a decommissioned server.
Usage: aeroftp-cli checkpoints [OPTIONS] <COMMAND>
Commands:
list List the endpoints that currently hold resume records
forget Drop every resume record bound to one endpoint
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: destructive
Summary: Remove orphaned .aerotmp files from interrupted downloads
Description: Remove orphaned .aerotmp files from interrupted downloads
Syntax: aeroftp-cli cleanup [OPTIONS] [URL] [PATH]
--force: Actually delete orphaned files (default: dry-run listing)--min-age : Only delete .aerotmp files older than this age (e.g. 30m, 2h, 1d). Recent temp files may belong to an in-progress transfer and are kept. Files without a known modification time are never deleted. Default: 1h (default: 1h)-h, --help: Print help (see a summary with '-h')Inspect `cleanup` (offline help)
aeroftp-cli help cleanupRemove orphaned .aerotmp files from interrupted downloads
Usage: aeroftp-cli cleanup [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote path to scan (default: where the profile starts; `/` is the root)
Options:
--force
Actually delete orphaned files (default: dry-run listing)
--min-age <MIN_AGE>
Only delete .aerotmp files older than this age (e.g. 30m, 2h, 1d). Recent temp files may belong to an in-progress transfer and are kept. Files without a known modification time are never deleted. Default: 1h
[default: 1h]
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: Generate shell completions (bash, zsh, fish, elvish, powershell)
Description: Generate shell completions (bash, zsh, fish, elvish, powershell)
Syntax: aeroftp-cli completions [OPTIONS] <SHELL>
-h, --help: Print help (see a summary with '-h')Inspect `completions` (offline help)
aeroftp-cli help completionsGenerate shell completions (bash, zsh, fish, elvish, powershell)
Usage: aeroftp-cli completions [OPTIONS] <SHELL>
Arguments:
<SHELL>
Shell to generate completions for
[possible values: bash, elvish, fish, powershell, zsh]
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Compress files/folders into an archive (zip, 7z, tar, tar.gz, tar.xz, tar.bz2, gz, xz, bz2).
Description: Compress files/folders into an archive (zip, 7z, tar, tar.gz, tar.xz, tar.bz2, gz, xz, bz2).
Syntax: aeroftp-cli compress [OPTIONS] <OUTPUT> <PATHS>...
--archive-format : Archive format override (default: infer from the output extension) [possible values: zip, 7z, tar, tar.gz, tar.xz, tar.bz2, gz, xz, bz2, rar]-l, --level : Compression level 0-9 (zip, 7z, tar.gz, tar.xz, tar.bz2; default 5 = 7-Zip "Normal"; 0 = store for zip). 7-Zip presets: 1 Fastest, 3 Fast, 5 Normal, 7 Maximum, 9 Ultra. For 7z it maps onto the LZMA2 preset-p, --password : AES-256 password for zip / 7z (explicit intent to encrypt). For an ambient default applied only to encryptable formats, set AEROFTP_ARCHIVE_PASSWORD--encrypt-names: 7z only: also encrypt the archive header so the filenames are hidden, not just the file contents (7-Zip's "Encrypt file names", -mhe=on). Requires --password and is ignored for other formats. Off by default--method : 7z only: content compression method (default lzma2). lzma is the classic single-stream LZMA; ppmd suits text; bzip2 is block sorting. All are readable by the extractor. Ignored for other formats [possible values: lzma2, lzma, ppmd, bzip2]--dictionary : 7z LZMA2 only: dictionary size in bytes (clamped to 4096..=1073741823), e.g. 16777216 for 16 MiB. Ignored for other methods/formats--solid: 7z only: pack every file into one solid block (better ratio on many small files, slower random extraction). Off by default--threads : 7z LZMA2 only: compression thread count (1 = single-threaded). Ignored for other methods/formats-h, --help: Print help (see a summary with '-h')Inspect `compress` (offline help)
aeroftp-cli help compressCompress files/folders into an archive (zip, 7z, tar, tar.gz, tar.xz, tar.bz2, gz, xz, bz2).
The format is inferred from the output extension unless `--archive-format` is given. `zip` and `7z` accept an AES-256 `--password`; the tar family is unencrypted. The standalone `gz` / `xz` / `bz2` compress exactly ONE file (single-stream, no tar wrapper): pass a single file, or use tar.gz/tar.xz/tar.bz2 to bundle many. 7z exposes advanced knobs: `--method` (lzma2/lzma/ppmd/bzip2), `--dictionary`, `--threads` (LZMA2), and `--solid`; all are ignored for the other formats. Local-only, no connection. Honors `--json` for scriptable output.
Usage: aeroftp-cli compress [OPTIONS] <OUTPUT> <PATHS>...
Arguments:
<OUTPUT>
Output archive path (format inferred from its extension unless --format)
<PATHS>...
Files and/or folders to add to the archive (one or more)
Options:
--archive-format <ARCHIVE_FORMAT>
Archive format override (default: infer from the output extension)
[possible values: zip, 7z, tar, tar.gz, tar.xz, tar.bz2, gz, xz, bz2, rar]
-l, --level <LEVEL>
Compression level 0-9 (zip, 7z, tar.gz, tar.xz, tar.bz2; default 5 = 7-Zip "Normal"; 0 = store for zip). 7-Zip presets: 1 Fastest, 3 Fast, 5 Normal, 7 Maximum, 9 Ultra. For 7z it maps onto the LZMA2 preset
-p, --password <PASSWORD>
AES-256 password for zip / 7z (explicit intent to encrypt). For an ambient default applied only to encryptable formats, set AEROFTP_ARCHIVE_PASSWORD
--encrypt-names
7z only: also encrypt the archive header so the filenames are hidden, not just the file contents (7-Zip's "Encrypt file names", -mhe=on). Requires --password and is ignored for other formats. Off by default
--method <METHOD>
7z only: content compression method (default lzma2). lzma is the classic single-stream LZMA; ppmd suits text; bzip2 is block sorting. All are readable by the extractor. Ignored for other formats
[possible values: lzma2, lzma, ppmd, bzip2]
--dictionary <DICTIONARY>
7z LZMA2 only: dictionary size in bytes (clamped to 4096..=1073741823), e.g. 16777216 for 16 MiB. Ignored for other methods/formats
--solid
7z only: pack every file into one solid block (better ratio on many small files, slower random extraction). Off by default
--threads <THREADS>
7z LZMA2 only: compression thread count (1 = single-threaded). Ignored for other methods/formats
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: safe
Summary: Test connection
Description: Test connection to a remote server
Syntax: aeroftp-cli connect --profile NAME
-h, --help: Print help (see a summary with '-h')Inspect `connect` (offline help)
aeroftp-cli help connectTest connection to a remote server
Usage: aeroftp-cli connect [OPTIONS] [URL]
Arguments:
[URL]
Server URL (e.g., sftp://user@host:22). Omit when using --profile
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Error-correct any standalone file with a detached `.aerocorrect` sidecar (par2-style). Generate parity, verify integrity, or repair corruption. The same format protects vault containers and synced fil
Description: Error-correct any standalone file with a detached `.aerocorrect` sidecar (par2-style). Generate parity, verify integrity, or repair corruption. The same format protects vault containers and synced files; binding is by content SHA-256. Windowed streaming keeps memory bounded on large files
Syntax: aeroftp-cli correct [OPTIONS] <COMMAND>
-h, --help: Print help (see a summary with '-h')Inspect `correct` (offline help)
aeroftp-cli help correctError-correct any standalone file with a detached `.aerocorrect` sidecar (par2-style). Generate parity, verify integrity, or repair corruption. The same format protects vault containers and synced files; binding is by content SHA-256. Windowed streaming keeps memory bounded on large files
Usage: aeroftp-cli correct [OPTIONS] <COMMAND>
Commands:
gen Generate a `.aerocorrect` recovery sidecar for a file. Default output is `<file>.aerocorrect`. The level sets the storage overhead (low ~7%, medium ~15%, quartile ~25%, high ~30%, or a percentage 5-50; default medium)
verify Verify a file against its `.aerocorrect` sidecar (read-only, never modifies the file). Exit 0 = intact, 1 = corruption detected (repairable with `correct repair`)
repair Repair a corrupted file in place from its `.aerocorrect` sidecar. Atomic and all-or-nothing: the original is replaced only if the repaired stream hashes back to the sidecar's recorded content; otherwise it is left byte-for-byte untouched
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: Server-side copy when supported
Description: Copy a remote file on the server side when supported
Syntax: aeroftp-cli cp --profile NAME /old /new
-h, --help: Print help (see a summary with '-h')Inspect `cp` (offline help)
aeroftp-cli help cpCopy a remote file on the server side when supported
Usage: aeroftp-cli cp [OPTIONS] [URL] [FROM] [TO]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[FROM]
Source path
[default: ""]
[TO]
Destination path
[default: ""]
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Use encrypted overlay storage (v4 keyslots: migrate-v4 / list-slots / add-slot / remove-slot / rotate-slot)
Description: Encrypted overlay - zero-knowledge storage on any provider
Syntax: aeroftp-cli crypt <init|bind|unbind|to-headed|to-headerless|migrate-marker|migrate-v4|list-slots|add-slot|remove-slot|rotate-slot|kit-verify|ls|put|get> --profile NAME /path
-h, --help: Print help (see a summary with '-h')Inspect `crypt` (offline help)
aeroftp-cli help cryptEncrypted overlay - zero-knowledge storage on any provider
Usage: aeroftp-cli crypt [OPTIONS] <COMMAND>
Commands:
init Initialize an encrypted overlay on a remote directory
bind Bind an existing crypt overlay to a saved profile so the whole app (CLI ls/get/sync, MCP, GUI) transparently decrypts it on connect
unbind Remove the crypt-overlay binding from a saved profile (the overlay itself and its remote data are untouched; standalone `crypt` commands keep working)
to-headerless Convert a headed vault to local-metadata headerless mode
set-form Record how an rclone-crypt profile's stored password and salt are written, as typed (clear) or as rclone.conf keeps them (obscured), so they are read that way instead of guessed. Needs --profile
to-headed Convert a headerless vault to a portable remote marker
migrate-marker Convert a legacy .aeroftp-crypt.json marker to .aerocrypt.tsv
migrate-v4 Migrate a v3 headed vault marker to v4 keyslots (one small marker write; objects and names are not rewritten). Explicit only: ordinary unlock never auto-migrates
list-slots List keyslots on a v4 vault (id, type, salt length; no secrets)
add-slot Add a keyslot to a v4 vault (no data rewrite; epoch unchanged)
remove-slot Remove (revoke) a keyslot from a v4 vault (epoch bump). T5 supports the single-survivor case: unlock with a slot you keep, then remove the other
rotate-slot Rotate one keyslot's factor (same epoch; re-wrap that slot only)
kit-verify Re-parse a saved Emergency Kit or headed marker and confirm it still matches the active profile keystore config (vault_id, salt, version, KDF). Offline by default: no password, no network. Optional remote probe when --kit is omitted and a headed marker is present on the remote
ls List files in an encrypted overlay (decrypted names)
put Upload a file or directory with encryption (content + names encrypted)
get Download and decrypt a file or directory from an encrypted overlay
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: safe
Summary: Cryptcheck integrity against encrypted rclone remote
Description: Cryptcheck integrity against encrypted rclone remote
Syntax: aeroftp-cli cryptcheck [OPTIONS] [URL] [LOCAL] [REMOTE]
--password : Password for rclone crypt (can also be passed via AEROFTP_RCLONE_CRYPT_PASSWORD)--password2 : Salt for rclone crypt (can also be passed via AEROFTP_RCLONE_CRYPT_PASSWORD2)--filename-encryption : Filename encryption mode (default: standard)--suffix : Suffix on objects when --filename-encryption=off (rclone default ".bin"; use "none" to disable). Stripped before comparing names--one-way: Only check files present locally--checkfile : Optional checkfile mode (not fully implemented)-a, --algorithm : Hash algorithm to use (sha256 or md5) (default: sha256)--password-form : How --password is written: auto, clear (as typed) or obscured (as in rclone.conf) [possible values: auto, clear, obscured] (default: auto)--salt-form : How --password2 is written: auto, clear or obscured [possible values: auto, clear, obscured] (default: auto)-h, --help: Print help (see a summary with '-h')Inspect `cryptcheck` (offline help)
aeroftp-cli help cryptcheckCryptcheck integrity against encrypted rclone remote
Usage: aeroftp-cli cryptcheck [OPTIONS] [URL] [LOCAL] [REMOTE]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[LOCAL]
Local directory
[default: .]
[REMOTE]
Remote directory (default: where the profile starts; `/` is the root)
Options:
--password <PASSWORD>
Password for rclone crypt (can also be passed via AEROFTP_RCLONE_CRYPT_PASSWORD)
[env: AEROFTP_RCLONE_CRYPT_PASSWORD]
--password2 <PASSWORD2>
Salt for rclone crypt (can also be passed via AEROFTP_RCLONE_CRYPT_PASSWORD2)
[env: AEROFTP_RCLONE_CRYPT_PASSWORD2]
--filename-encryption <FILENAME_ENCRYPTION>
Filename encryption mode
[default: standard]
--suffix <SUFFIX>
Suffix on objects when --filename-encryption=off (rclone default ".bin"; use "none" to disable). Stripped before comparing names
--one-way
Only check files present locally
--checkfile <CHECKFILE>
Optional checkfile mode (not fully implemented)
-a, --algorithm <ALGORITHM>
Hash algorithm to use (sha256 or md5)
[default: sha256]
--password-form <PASSWORD_FORM>
How --password is written: auto, clear (as typed) or obscured (as in rclone.conf)
[default: auto]
[possible values: auto, clear, obscured]
--salt-form <SALT_FORM>
How --password2 is written: auto, clear or obscured
[default: auto]
[possible values: auto, clear, obscured]
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Manage the background jobs daemon
Description: Background daemon for persistent mounts, jobs, and watch
Syntax: aeroftp-cli daemon <start|stop|status>
-h, --help: Print help (see a summary with '-h')Inspect `daemon` (offline help)
aeroftp-cli help daemonBackground daemon for persistent mounts, jobs, and watch
Usage: aeroftp-cli daemon [OPTIONS] <COMMAND>
Commands:
start Start the background daemon
stop Stop the running daemon
status Show daemon status
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Resolve duplicate remote files
Description: Find duplicate files on a remote by content hash and optionally remove them
Syntax: aeroftp-cli dedupe --profile NAME /path [--mode MODE]
--mode : Resolution mode: skip, delete, newest, oldest, largest, smallest, rename, interactive, list (default: skip)--dry-run: Preview only (don't delete)--force: Confirm destructive modes (delete/newest/oldest/largest/smallest/rename). Required in non-interactive (non-TTY) runs; in a TTY it skips the prompt--max-delete : Cap on the number of files a destructive mode may delete/rename in one run (absolute N or N%). Defaults to 100 when omitted; raise it to act on more--similarity : Similarity: exact (byte-identical, default, back-compat) or non-identical (perceptual for images, simhash for text/SVG) (default: exact)--distance : Hamming distance threshold override for non-identical mode (raster default 10, text 3)-h, --help: Print help (see a summary with '-h')Inspect `dedupe` (offline help)
aeroftp-cli help dedupeFind duplicate files on a remote by content hash and optionally remove them
Usage: aeroftp-cli dedupe [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote path to scan (default: where the profile starts; `/` is the root)
Options:
--mode <MODE>
Resolution mode: skip, delete, newest, oldest, largest, smallest, rename, interactive, list
[default: skip]
--dry-run
Preview only (don't delete)
--force
Confirm destructive modes (delete/newest/oldest/largest/smallest/rename). Required in non-interactive (non-TTY) runs; in a TTY it skips the prompt
--max-delete <MAX_DELETE>
Cap on the number of files a destructive mode may delete/rename in one run (absolute N or N%). Defaults to 100 when omitted; raise it to act on more
--similarity <SIMILARITY>
Similarity: exact (byte-identical, default, back-compat) or non-identical (perceptual for images, simhash for text/SVG)
[default: exact]
--distance <DISTANCE>
Hamming distance threshold override for non-identical mode (raster default 10, text 3)
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: safe
Summary: Storage quota
Description: Show storage quota/usage
Syntax: aeroftp-cli df --profile NAME [--json]
--scan: Compute "used" by recursively scanning the tree (item 4b). Needed for backends with no quota API (FTP/S3/WebDAV): combined with an API or manual total it yields used/total/%. Never run automatically; this is the explicit opt-in--full: With --scan, scan from the account root instead of the profile's initial path. Slower; may hit the entry cap on large accounts-h, --help: Print help (see a summary with '-h')Inspect `df` (offline help)
aeroftp-cli help dfShow storage quota/usage
Usage: aeroftp-cli df [OPTIONS] [URL]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
Options:
--scan
Compute "used" by recursively scanning the tree (item 4b). Needed for backends with no quota API (FTP/S3/WebDAV): combined with an API or manual total it yields used/total/%. Never run automatically; this is the explicit opt-in
--full
With --scan, scan from the account root instead of the profile's initial path. Slower; may hit the entry cap on large accounts
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: Replace text in a remote UTF-8 file
Description: Find and replace text in a remote UTF-8 file
Syntax: aeroftp-cli edit --profile NAME /path/file "find" "replace" [--first] [--allow-non-atomic]
--first: Replace only the first occurrence--allow-non-atomic: On a server whose replace sets the previous file aside (MEGA native API, Filen, FileLu, Dropbox, Koofr, Drime, kDrive, WebDAV): set it aside, move the new one into its place, then delete the old one. There is a short moment with no file. Without this flag such a server refuses the edit and nothing is written; any other server that cannot replace in one step refuses it with the flag too-h, --help: Print help (see a summary with '-h')Inspect `edit` (offline help)
aeroftp-cli help editFind and replace text in a remote UTF-8 file
Usage: aeroftp-cli edit [OPTIONS] [URL] [PATH] [FIND] [REPLACE]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote file path
[default: ""]
[FIND]
Exact text to find
[default: ""]
[REPLACE]
Replacement text
[default: ""]
Options:
--first
Replace only the first occurrence
--allow-non-atomic
On a server whose replace sets the previous file aside (MEGA native API, Filen, FileLu, Dropbox, Koofr, Drime, kDrive, WebDAV): set it aside, move the new one into its place, then delete the old one. There is a short moment with no file. Without this flag such a server refuses the edit and nothing is written; any other server that cannot replace in one step refuses it with the flag too
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: Export saved server profiles to external configuration formats
Description: Export saved server profiles to external configuration formats
Syntax: aeroftp-cli export [OPTIONS] <COMMAND>
-h, --help: Print help (see a summary with '-h')Inspect `export` (offline help)
aeroftp-cli help exportExport saved server profiles to external configuration formats
Usage: aeroftp-cli export [OPTIONS] <COMMAND>
Commands:
rclone Export profiles to rclone.conf format: FTP/FTPS, SFTP, WebDAV, S3, MEGA, Filen, Internxt, Azure, Swift, Koofr, OpenDrive, Backblaze B2, Drime, Cloudinary, ImageKit, Jottacloud, and the OAuth providers (Google Drive, Dropbox, OneDrive, Box, pCloud, Yandex Disk, Zoho WorkDrive) with their token and the client ID that minted it. An Internxt remote needs one `rclone config reconnect "<remote>:"` before use, as the file says. ImageKit needs the account public key, which only a profile imported from rclone holds. FileLu is skipped: rclone signs in with the FileLu Rclone key, not the API key AeroFTP holds. Any profile that cannot be written is skipped and listed with the reason in the command output; nothing is written for it
winscp Export profiles to WinSCP.ini format (FTP/FTPS/SFTP)
filezilla Export profiles to FileZilla sitemanager.xml format (FTP/FTPS/SFTP)
aws Export S3 profiles to AWS shared credentials/config files (secrets written to file)
ssh Export SFTP profiles to an ssh_config file (key paths only, no key material)
mc Export S3 profiles to a MinIO client config.json (secrets written to file)
cyberduck Export FTP/FTPS/SFTP/WebDAV/S3 profiles to Cyberduck bookmarks (.duck)
s3cmd Export S3/SFTP/WebDAV profiles to a .s3cfg file (secrets written to file)
lftp Export FTP/FTPS/SFTP/WebDAV profiles to an lftp rc file (secrets written to file)
putty Export SFTP profiles to a PuTTY session file (key paths only, no key material)
mobaxterm Export profiles to a MobaXterm.ini file (secrets written to file)
dreamweaver Export profiles to a Dreamweaver site definition (.ste; secrets written to file)
kopia Export S3/SFTP/WebDAV profiles to a kopia repository config (secrets written to file)
duplicacy Export S3/SFTP/WebDAV profiles to Duplicacy preferences (secrets written to file)
restic Export S3/SFTP/WebDAV profiles to a sourceable Restic env script (secrets written to file)
aeroftp Export profiles to AeroFTP's own encrypted `.aeroftp` bundle (the format `My Servers > Export` writes). Unlike the foreign formats above this one is encrypted and round-trips every AeroFTP-specific setting; it is an alias for `profile-export`
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Extract an archive (zip, 7z, tar, tar.gz, tar.xz, tar.bz2, gz, xz, bz2, rar).
Description: Extract an archive (zip, 7z, tar, tar.gz, tar.xz, tar.bz2, gz, xz, bz2, rar).
Syntax: aeroftp-cli extract [OPTIONS] <ARCHIVE> [OUTDIR]
--archive-format : Archive format override (default: infer from the archive extension) [possible values: zip, 7z, tar, tar.gz, tar.xz, tar.bz2, gz, xz, bz2, rar]-p, --password : Password for encrypted zip / 7z. Also read from AEROFTP_ARCHIVE_PASSWORD--subfolder: Extract into a subfolder named after the archive-h, --help: Print help (see a summary with '-h')Inspect `extract` (offline help)
aeroftp-cli help extractExtract an archive (zip, 7z, tar, tar.gz, tar.xz, tar.bz2, gz, xz, bz2, rar).
The format is inferred from the archive extension unless `--archive-format` is given. `--password` unlocks encrypted zip / 7z (also AEROFTP_ARCHIVE_PASSWORD). Local-only, no connection. Honors `--json`.
Usage: aeroftp-cli extract [OPTIONS] <ARCHIVE> [OUTDIR]
Arguments:
<ARCHIVE>
Archive path (format inferred from its extension unless --format)
[OUTDIR]
Output directory (default: current directory)
[default: .]
Options:
--archive-format <ARCHIVE_FORMAT>
Archive format override (default: infer from the archive extension)
[possible values: zip, 7z, tar, tar.gz, tar.xz, tar.bz2, gz, xz, bz2, rar]
-p, --password <PASSWORD>
Password for encrypted zip / 7z. Also read from AEROFTP_ARCHIVE_PASSWORD
[env: AEROFTP_ARCHIVE_PASSWORD]
--subfolder
Extract into a subfolder named after the archive
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: safe
Summary: Search files
Description: Search for files by pattern
Syntax: aeroftp-cli find --profile NAME /path/ "*.ext" [--json]
--name : Glob pattern alias for the positional argument. When both the positional pattern and `--name` are set, `--name` wins--files-only: Match only files (skip directories)--dirs-only: Match only directories (skip files)--limit : Cap matches returned. JSON output sets `summary.truncated: true` when this trims results-h, --help: Print help (see a summary with '-h')Inspect `find` (offline help)
aeroftp-cli help findSearch for files by pattern
Usage: aeroftp-cli find [OPTIONS] [URL] [PATH] [PATTERN]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Base path to search from
[default: /]
[PATTERN]
Search pattern (glob-style). Positional; `--name` is an equivalent flag form for agents that expect named args
[default: *]
Options:
--name <GLOB>
Glob pattern alias for the positional argument. When both the positional pattern and `--name` are set, `--name` wins
--files-only
Match only files (skip directories)
--dirs-only
Match only directories (skip files)
--limit <LIMIT>
Cap matches returned. JSON output sets `summary.truncated: true` when this trims results
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Import a native install's configuration into this Flatpak sandbox.
Description: Import a native install's configuration into this Flatpak sandbox.
Syntax: aeroftp-cli flatpak-import [OPTIONS]
--status: Only report whether an import is available; do not apply it-h, --help: Print help (see a summary with '-h')Inspect `flatpak-import` (offline help)
aeroftp-cli help flatpak-importImport a native install's configuration into this Flatpak sandbox.
A Flatpak install keeps its own sandboxed config, so it does not see the servers and encrypted vault of a native (.deb/.rpm/AppImage) install. Run inside a Flatpak with a native `~/.config/aeroftp` present, this copies it into the sandbox (copy-only, never overwriting). Outside a Flatpak it is a no-op. Restart AeroFTP afterwards to load the import. The host vault and saved servers come in only when the sandbox has no vault of its own, and the output says whether they did.
Exit codes: 0 when files were imported, when no file was copied (each file the import would copy already has a file with the same name in the sandbox, or the host config holds nothing the import copies), with --status, and outside a Flatpak; 1 when there is no host config, or when the copy failed (files copied before the error stay in the sandbox).
Usage: aeroftp-cli flatpak-import [OPTIONS]
Options:
--status
Only report whether an import is available; do not apply it
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: safe
Summary: Download file
Description: Download file(s) from remote server
Syntax: aeroftp-cli get --profile NAME /remote/file [./local]
-r, --recursive: Recursive download (directories)--segments : Segmented parallel download: split file into N chunks (2-16, default: 1 = off) (default: 1)--delta: Z.4.5 R1: route the download through `AerorsyncDeltaTransport` when the provider exposes one (SFTP today). Auto-falls back to the classic transfer when the transport is not delta-eligible (file too small, or no host key fingerprint pinned from this session). Password authentication is not a reason: a delta batch opens over a password-only server too, measured 2026-09-17. No-op for non-SFTP providers and for recursive / glob downloads-h, --help: Print help (see a summary with '-h')Inspect `get` (offline help)
aeroftp-cli help getDownload file(s) from remote server
Usage: aeroftp-cli get [OPTIONS] [URL] [REMOTE] [LOCAL]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[REMOTE]
Remote file path (supports glob patterns like "*.csv")
[default: ""]
[LOCAL]
Local destination (default: current filename)
Options:
-r, --recursive
Recursive download (directories)
--segments <SEGMENTS>
Segmented parallel download: split file into N chunks (2-16, default: 1 = off)
[default: 1]
--delta
Z.4.5 R1: route the download through `AerorsyncDeltaTransport` when the provider exposes one (SFTP today). Auto-falls back to the classic transfer when the transport is not delta-eligible (file too small, or no host key fingerprint pinned from this session). Password authentication is not a reason: a delta batch opens over a password-only server too, measured 2026-09-17. No-op for non-SFTP providers and for recursive / glob downloads
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: List and manage server-profile groups (the My Servers group chips)
Description: List and manage server-profile groups (the My Servers group chips)
Syntax: aeroftp-cli groups [OPTIONS]
-i, --interactive: Drop into an interactive prompt after the table (rclone-config-style): Help, List, refresh, New, Rename, Copy, Add, remove, re-index, Delete. Requires a TTY; ignored in JSON / non-interactive mode--tui: Open the inline action menu (TUI) directly, skipping the `-i` line prompt (Ehud #311). Offers every verb of the `-i` action bar. Implies interactive and needs a TTY; equivalent to running `-i` and immediately typing `tui`. Quitting the menu exits-h, --help: Print help (see a summary with '-h')Inspect `groups` (offline help)
aeroftp-cli help groupsList and manage server-profile groups (the My Servers group chips)
Groups are flat, named labels on saved server profiles, the CLI analogue of the GUI group chips. Membership lives in the vault under `config_server_groups`, shared with the GUI, so changes round-trip both ways. Mirrors `aeroftp-cli profiles`: a plain listing, or `-i` for an interactive prompt (rename / copy / delete / re-index). Per Ehud #311.
Usage: aeroftp-cli groups [OPTIONS]
Options:
-i, --interactive
Drop into an interactive prompt after the table (rclone-config-style): Help, List, refresh, New, Rename, Copy, Add, remove, re-index, Delete. Requires a TTY; ignored in JSON / non-interactive mode
--tui
Open the inline action menu (TUI) directly, skipping the `-i` line prompt (Ehud #311). Offers every verb of the `-i` action bar. Implies interactive and needs a TTY; equivalent to running `-i` and immediately typing `tui`. Quitting the menu exits
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Compute remote checksum
Description: Compute hash of remote file(s).
Syntax: aeroftp-cli hashsum --algorithm ALGO --profile NAME /path/file
-a, --algorithm : Hash algorithm (md5/sha1/sha256/sha512/blake3). Defaults to sha256. Accepts `-a sha256` or `--algorithm sha256`. Omitting the flag yields a sha256 checksum Possible values: - md5 - sha1 - sha256 - sha512 - blake3 - quickxor: Microsoft OneDrive proprietary QuickXorHash. Server-side only: it cannot be computed locally, so there is no download fallback - dropbox: Dropbox content_hash (SHA-256 of per-4MiB-block SHA-256). Server-side only: not a plain digest, no local fallback (default: sha256)--download: Download the file and hash it locally, even when the backend has a server-side digest. Without this flag, a missing or failed server checksum still falls back to a local download for md5, sha1, sha256, sha512 and blake3-h, --help: Print help (see a summary with '-h')Inspect `hashsum` (offline help)
aeroftp-cli help hashsumCompute hash of remote file(s).
Prefers a server-side digest when the backend supplies the requested algorithm. If that checksum is missing or fails, md5, sha1, sha256, sha512 and blake3 fall back to transferring the file and hashing it locally: as the bytes arrive, with no copy on disk, when the backend reads parts of a file (a stalled read resumes where it stopped); otherwise downloaded first into the cache folder, once it is known to have room. `--download` skips the server digest and always hashes the transferred bytes. quickxor and dropbox are server-only and have no local fallback.
Usage: aeroftp-cli hashsum [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote file path
[default: ""]
Options:
-a, --algorithm <ALGORITHM>
Hash algorithm (md5/sha1/sha256/sha512/blake3). Defaults to sha256. Accepts `-a sha256` or `--algorithm sha256`. Omitting the flag yields a sha256 checksum
Possible values:
- md5
- sha1
- sha256
- sha512
- blake3
- quickxor: Microsoft OneDrive proprietary QuickXorHash. Server-side only: it cannot be computed locally, so there is no download fallback
- dropbox: Dropbox content_hash (SHA-256 of per-4MiB-block SHA-256). Server-side only: not a plain digest, no local fallback
[default: sha256]
--download
Download the file and hash it locally, even when the backend has a server-side digest. Without this flag, a missing or failed server checksum still falls back to a local download for md5, sha1, sha256, sha512 and blake3
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Read first lines of a remote text file
Description: Print first N lines of a remote file
Syntax: aeroftp-cli head --profile NAME /path/file [-n N]
-n, --lines : Number of lines to print (default: 20) (default: 20)-c, --bytes : Print the first N bytes instead of N lines. Mutually exclusive with --lines (--bytes wins when both present). Useful for "first 4KB" previews on binary or huge files-h, --help: Print help (see a summary with '-h')Inspect `head` (offline help)
aeroftp-cli help headPrint first N lines of a remote file
Usage: aeroftp-cli head [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote file path
[default: ""]
Options:
-n, --lines <LINES>
Number of lines to print (default: 20)
[default: 20]
-c, --bytes <BYTES>
Print the first N bytes instead of N lines. Mutually exclusive with --lines (--bytes wins when both present). Useful for "first 4KB" previews on binary or huge files
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: Import server profiles from external sources
Description: Import server profiles from external sources
Syntax: aeroftp-cli import [OPTIONS] <COMMAND>
-h, --help: Print help (see a summary with '-h')Inspect `import` (offline help)
aeroftp-cli help importImport server profiles from external sources
Usage: aeroftp-cli import [OPTIONS] <COMMAND>
Commands:
rclone Import remotes from rclone configuration file
winscp Import sessions from WinSCP configuration file
filezilla Import sites from FileZilla configuration file
rclone-filter Convert an rclone filter file (--filter-from format) into a .aeroignore file
aws Import profiles from ~/.aws/credentials + config (secrets are read, never printed)
ssh Import hosts from ~/.ssh/config (key paths only; never prints key material)
mc Import aliases from the MinIO client config.json (secrets read, never printed)
cyberduck Import bookmarks from Cyberduck (.duck/Bookmarks; passwords stay in the OS keychain)
s3cmd Import buckets from ~/.s3cfg (s3cmd secrets are read, never printed)
lftp Import bookmarks from ~/.lftprc / ~/.lftp/rc (stored secrets read, never printed)
putty Import sessions from PuTTY (registry on Windows; key paths only, no key material)
mobaxterm Import sessions from MobaXterm.ini (stored secrets read, never printed)
dreamweaver Import sites from Dreamweaver site definitions (.ste; secrets read, never printed)
kopia Import the repository from the kopia repository config (secrets read, never printed)
duplicacy Import the storage backend from Duplicacy preferences (secrets read, never printed)
restic Import the Restic repository. PATH is a RESTIC_REPOSITORY_FILE; if omitted, RESTIC_REPOSITORY / RESTIC_REPOSITORY_FILE env vars are used. Secrets are read from the environment, never printed
aeroftp Import profiles from AeroFTP's own encrypted `.aeroftp` bundle (the format `My Servers > Import` reads). It is an alias for `profile-import`, including its `--dry-run` preview
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Print the authoritative inventory of every CLI subcommand and MCP tool
Description: Print the authoritative inventory of every CLI subcommand and MCP tool
Syntax: aeroftp-cli inventory [OPTIONS]
--markdown: Print a human-readable Markdown table instead of JSON--check : Compare live counts against a snapshot JSON file; exit non-zero on drift-h, --help: Print help (see a summary with '-h')Inspect `inventory` (offline help)
aeroftp-cli help inventoryPrint the authoritative inventory of every CLI subcommand and MCP tool
Read straight from the in-code registries (the clap command table, `mcp::tools::tool_definitions`, the CLI agent-tool set), so the counts can never drift from a hand-maintained list. Purely local: no vault, no network. Default output is JSON; `--markdown` prints a human table; `--check FILE` exits non-zero if the live counts differ from a committed snapshot (the CI drift gate).
Usage: aeroftp-cli inventory [OPTIONS]
Options:
--markdown
Print a human-readable Markdown table instead of JSON
--check <FILE>
Compare live counts against a snapshot JSON file; exit non-zero on drift
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Manage queued background jobs
Description: Manage background transfer jobs (requires daemon running)
Syntax: aeroftp-cli jobs <add|list|status|cancel>
-h, --help: Print help (see a summary with '-h')Inspect `jobs` (offline help)
aeroftp-cli help jobsManage background transfer jobs (requires daemon running)
Usage: aeroftp-cli jobs [OPTIONS] <COMMAND>
Commands:
add Add a new background job
list List all jobs
status Show status of a specific job
cancel Cancel a running or queued job
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: Encrypted full-state backup of the AeroFTP installation (vault entries, SQLite databases, plugins, sync snapshots, UI preferences). The on-disk format is the same `.aeroftp-keystore` envelope produced
Description: Encrypted full-state backup of the AeroFTP installation (vault entries, SQLite databases, plugins, sync snapshots, UI preferences). The on-disk format is the same `.aeroftp-keystore` envelope produced by the GUI, so files created via the CLI can be imported through Settings > Backup and vice versa
Syntax: aeroftp-cli keystore [OPTIONS] <COMMAND>
-h, --help: Print help (see a summary with '-h')Inspect `keystore` (offline help)
aeroftp-cli help keystoreEncrypted full-state backup of the AeroFTP installation (vault entries, SQLite databases, plugins, sync snapshots, UI preferences). The on-disk format is the same `.aeroftp-keystore` envelope produced by the GUI, so files created via the CLI can be imported through Settings > Backup and vice versa
Usage: aeroftp-cli keystore [OPTIONS] <COMMAND>
Commands:
export Export an encrypted `.aeroftp-keystore` backup file
import Import an encrypted `.aeroftp-keystore` backup file into the current installation. Sections that have been opted out via `--skip-*` are left untouched on disk. After a successful import that touched SQLite or files the CLI prints a `requires_restart=true` line and exits 0; the AeroFTP GUI must be restarted before exercising the restored DBs
info Inspect the cleartext envelope metadata of a backup file WITHOUT decrypting the payload. Useful for "what's in this file?" before typing the password
status Health check of the credential vault: reports the key mode and whether the vault can be opened right now. Detects a lost or overwritten keyring entry (zero-password vault that no longer unlocks). Read-only; exits 0 when healthy, 1 when the vault cannot be opened
repair Recover a credential vault that can no longer be unlocked (e.g. its system-keyring entry was lost or overwritten). Snapshots and resets `vault.db` + `vault.key`, re-initialises a fresh vault, then imports the given `.aeroftp-keystore` backup. The pre-reset state is preserved in a timestamped snapshot under the config directory (reversible)
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: Create share link when supported
Description: Create a share link for a remote file when supported
Syntax: aeroftp-cli link --profile NAME /path/file
--expires : Link expiration (e.g. 1h, 24h, 7d, 30d, or seconds)--password : Password-protect the link (provider support required)--permissions : Permission level: view, edit, comment (provider support required) (default: view)--verify: Probe the generated URL with a follow-redirects HTTP GET and report whether it is reachable. Exit code 4 if the probe fails. Useful in CI smoke tests to catch silent regressions where the URL is built but does not actually resolve-h, --help: Print help (see a summary with '-h')Inspect `link` (offline help)
aeroftp-cli help linkCreate a share link for a remote file when supported
Usage: aeroftp-cli link [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote path
[default: ""]
Options:
--expires <EXPIRES>
Link expiration (e.g. 1h, 24h, 7d, 30d, or seconds)
--password <PASSWORD>
Password-protect the link (provider support required)
--permissions <PERMISSIONS>
Permission level: view, edit, comment (provider support required)
[default: view]
--verify
Probe the generated URL with a follow-redirects HTTP GET and report whether it is reachable. Exit code 4 if the probe fails. Useful in CI smoke tests to catch silent regressions where the URL is built but does not actually resolve
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: safe
Summary: List directory
Description: List files on a remote server
Syntax: aeroftp-cli ls --profile NAME /path/ [-l] [--json]
-l, --long: Long listing format (permissions, size, date)-s, --sort : Sort by: name, size, date (default: name)-r, --reverse: Reverse sort order-a, --all: Show all files (including hidden)--limit : Cap the number of entries returned (after sort). When the listing is truncated, JSON output sets `summary.truncated: true` so agents can detect partial results--files-only: List only files (skip directories). Applied after sort--dirs-only: List only directories (skip files). Applied after sort-h, --help: Print help (see a summary with '-h')Inspect `ls` (offline help)
aeroftp-cli help lsList files on a remote server
Usage: aeroftp-cli ls [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote path (default: where the profile starts; `/` is the root)
Options:
-l, --long
Long listing format (permissions, size, date)
-s, --sort <SORT>
Sort by: name, size, date
[default: name]
-r, --reverse
Reverse sort order
-a, --all
Show all files (including hidden)
--limit <LIMIT>
Cap the number of entries returned (after sort). When the listing is truncated, JSON output sets `summary.truncated: true` so agents can detect partial results
--files-only
List only files (skip directories). Applied after sort
--dirs-only
List only directories (skip files). Applied after sort
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: safe
Summary: List directories only (rclone-style `lsd`)
Description: List directories only (rclone-style `lsd`)
Syntax: aeroftp-cli lsd [OPTIONS] [URL] [PATH]
-h, --help: Print help (see a summary with '-h')Inspect `lsd` (offline help)
aeroftp-cli help lsdList directories only (rclone-style `lsd`)
Usage: aeroftp-cli lsd [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote path (default: where the profile starts; `/` is the root)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: safe
Summary: Flat machine-parsable listing, one entry per line (rclone-style `lsf`)
Description: Flat machine-parsable listing, one entry per line (rclone-style `lsf`)
Syntax: aeroftp-cli lsf [OPTIONS] [URL] [PATH]
-h, --help: Print help (see a summary with '-h')Inspect `lsf` (offline help)
aeroftp-cli help lsfFlat machine-parsable listing, one entry per line (rclone-style `lsf`)
Usage: aeroftp-cli lsf [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote path (default: where the profile starts; `/` is the root)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: safe
Summary: Machine-readable JSON listing with a stable record schema
Description: Machine-readable JSON listing with a stable record schema
Syntax: aeroftp-cli lsjson [OPTIONS] [URL] [PATH]
-R, --recursive: Recurse into subdirectories--files-only: List files only--dirs-only: List directories only--stat: Emit a single object describing the path itself, not its contents--no-modtime: Omit the ModTime field entirely--no-mimetype: Omit the MimeType field entirely--hash: Include per-file Hashes from server-provided digests only (S3 ETag, B2 contentSha1, pCloud, SFTP sha256sum): never downloads. Omitted for directories and whenever the backend does not expose the requested hash cheaply--hash-type : Hash algorithm used by --hash Possible values: - md5 - sha1 - sha256 - sha512 - blake3 - quickxor: Microsoft OneDrive proprietary QuickXorHash. Server-side only: it cannot be computed locally, so there is no download fallback - dropbox: Dropbox content_hash (SHA-256 of per-4MiB-block SHA-256). Server-side only: not a plain digest, no local fallback (default: sha256)--ndjson: Stream one JSON object per line as each entry is discovered, instead of buffering the whole listing into one sorted array. Output is UNSORTED (streaming and a global sort are mutually exclusive) and is not a JSON array: it is newline-delimited JSON (NDJSON), one record per line. Use it to start consuming a long recursive listing immediately, or to pipe into a line-based tool-h, --help: Print help (see a summary with '-h')Inspect `lsjson` (offline help)
aeroftp-cli help lsjsonMachine-readable JSON listing with a stable record schema
Usage: aeroftp-cli lsjson [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote path (default: where the profile starts; `/` is the root)
Options:
-R, --recursive
Recurse into subdirectories
--files-only
List files only
--dirs-only
List directories only
--stat
Emit a single object describing the path itself, not its contents
--no-modtime
Omit the ModTime field entirely
--no-mimetype
Omit the MimeType field entirely
--hash
Include per-file Hashes from server-provided digests only (S3 ETag, B2 contentSha1, pCloud, SFTP sha256sum): never downloads. Omitted for directories and whenever the backend does not expose the requested hash cheaply
--hash-type <HASH_TYPE>
Hash algorithm used by --hash
Possible values:
- md5
- sha1
- sha256
- sha512
- blake3
- quickxor: Microsoft OneDrive proprietary QuickXorHash. Server-side only: it cannot be computed locally, so there is no download fallback
- dropbox: Dropbox content_hash (SHA-256 of per-4MiB-block SHA-256). Server-side only: not a plain digest, no local fallback
[default: sha256]
--ndjson
Stream one JSON object per line as each entry is discovered, instead of buffering the whole listing into one sorted array. Output is UNSORTED (streaming and a global sort are mutually exclusive) and is not a JSON array: it is newline-delimited JSON (NDJSON), one record per line. Use it to start consuming a long recursive listing immediately, or to pipe into a line-based tool
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: safe
Summary: Long listing: permissions, size, date, name (rclone-style `lsl`)
Description: Long listing: permissions, size, date, name (rclone-style `lsl`)
Syntax: aeroftp-cli lsl [OPTIONS] [URL] [PATH]
-h, --help: Print help (see a summary with '-h')Inspect `lsl` (offline help)
aeroftp-cli help lslLong listing: permissions, size, date, name (rclone-style `lsl`)
Usage: aeroftp-cli lsl [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote path (default: where the profile starts; `/` is the root)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Start the Model Context Protocol server (JSON-RPC 2.0 over stdio)
Description: Start the Model Context Protocol server (JSON-RPC 2.0 over stdio)
Syntax: aeroftp-cli mcp [OPTIONS]
-h, --help: Print help (see a summary with '-h')Inspect `mcp` (offline help)
aeroftp-cli help mcpStart the Model Context Protocol server (JSON-RPC 2.0 over stdio)
Equivalent to `aeroftp agent --mcp`. Exposed as a top-level subcommand so that MCP clients (Claude Code, Cursor, Windsurf, VS Code extensions) can invoke it with minimal configuration.
Usage: aeroftp-cli mcp [OPTIONS]
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: Create directory (-p: parents, idempotent)
Description: Create a remote directory
Syntax: aeroftp-cli mkdir --profile NAME /remote/dir [-p]
-p, --parents: Create parent directories as needed; no error if existing--access : Issue #252: privacy level for the created folder on providers that model access (OpenDrive). Defaults to `private` when omitted on an OpenDrive target. Cascades to existing children server-side Possible values: - private: Not listed, not shared; reachable only by the owner - public: Anyone with the link can access; searchable - hidden: Accessible by direct link only; not searchable-h, --help: Print help (see a summary with '-h')Inspect `mkdir` (offline help)
aeroftp-cli help mkdirCreate a remote directory
Usage: aeroftp-cli mkdir [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote directory path
[default: ""]
Options:
-p, --parents
Create parent directories as needed; no error if existing
--access <ACCESS>
Issue #252: privacy level for the created folder on providers that model access (OpenDrive). Defaults to `private` when omitted on an OpenDrive target. Cascades to existing children server-side
Possible values:
- private: Not listed, not shared; reachable only by the owner
- public: Anyone with the link can access; searchable
- hidden: Accessible by direct link only; not searchable
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Expose a remote as a local filesystem
Description: Mount a remote as a local filesystem (FUSE on Linux/macOS, WebDAV drive on Windows)
Syntax: aeroftp-cli mount --profile NAME /mountpoint
--cache-ttl : Metadata cache TTL in seconds (default: 30) (default: 30)--allow-other: Allow other users to access the mount (Linux/macOS: requires user_allow_other in /etc/fuse.conf)--read-only: Mount as read-only (default: read-write)--cache-poll-interval : KE-C2: How often the mount polls the remote for changes that happened out-of-band. Accepts `30s`, `5m`, `1h`. Reserved for the directory-listing watcher landing with T-DEBT-13; the value is parsed and stored today but the polling task is not yet active. Default: `1m`--attr-timeout : KE-C2: FUSE attribute cache lifetime (`reply.attr` TTL). Accepts `1s`, `500ms`, `5m`. Defaults to the value of `--cache-ttl` for backward compatibility--dir-cache-time : KE-C2: Directory-listing cache lifetime (used when checking whether a cached `readdir` result is fresh enough to serve without a remote round-trip). Accepts `30s`, `5m`. Defaults to the value of `--cache-ttl` for backward compatibility--read-chunk-size : KE-C2: Maximum size of a single `read` call to the remote. Accepts `128k`, `4M`, `1G`. Larger values amortise round-trip latency on high-bandwidth links; smaller values reduce memory pressure and the cost of a cancelled read. Default: `4M`--read-chunk-size-limit : KE-C2: Upper bound for any adaptive ramp of the read chunk size. Reserved for the doubling-strategy code path landing with T-DEBT-13. The value is parsed and stored today but the adaptive ramp is not yet active. Default: unset (no extra cap; the per-call ceiling is `--read-chunk-size`)--write-back-cache: KE-C3: Enable the FUSE kernel write-back cache. When set, the kernel buffers writes in its page cache and flushes them asynchronously to the userspace filesystem. This typically improves throughput on small/random writes at the cost of crash durability: app-visible `mtime` and `size` update on flush, not on every `write`. The capability is negotiated in the FUSE `init` handshake; the kernel may refuse it on older kernels (`FUSE_WRITEBACK_CACHE` requires kernel >= 3.15). Default: off--cache-mode : KE-C1: Caching policy preset. Selects `attr_timeout`, `dir_cache_time`, and the in-memory `cache_ttl` in one switch. `off`: no cache anywhere, TTL=0 on every reply (best-effort: the kernel dentry cache may still serve briefly within an RCU window). `minimal`: 1s attr TTL, no dir listing cache. `writes`: 30s TTL with the existing post-mutation invalidation on `create`/`unlink`/`rename`/ `mkdir`/`rmdir`. `full`: 300s TTL (or whatever `--cache-ttl` dictates), historical AeroFTP default. Granular overrides (`--attr-timeout`, `--dir-cache-time`) win over the mode. Default: `full` Possible values: - off: No in-memory metadata cache, every FUSE callback hits the remote with `TTL=0`. The Linux VFS dentry cache may still serve briefly within an RCU window, so this is best-effort no-cache rather than rigorous bypass - minimal: `attr_timeout=1s`, no directory-listing cache. Tight enough for rapidly-changing remotes while keeping single-stat hammering bounded - writes: `attr_timeout=dir_cache_time=cache_ttl=30s`. Suited to mounts that mutate via this process: the existing post-mutation `invalidate_dir` calls clear stale entries on `create`, `unlink`, `rmdir`, `rename`, `mkdir` - full: `attr_timeout=dir_cache_time=cache_ttl=--cache-ttl`. The historical AeroFTP default; keeps byte-for-byte compatibility with mounts built before KE-C1 landed (default: full)--fuse-threads : T-DEBT-13c: Number of FUSE session event-loop threads. With `N > 1` the kernel can dispatch independent requests (`read`, `readdir`, `getattr`) in parallel and the mount honours the `Send + Sync` invariant of the userspace filesystem. When set the crate also enables `FUSE_DEV_IOC_CLONE`, giving each worker thread its own `/dev/fuse` descriptor for lock-free request processing. Default: unset (single-threaded loop, byte-for-byte compatible with mounts built before the 0.17 bump)-h, --help: Print help (see a summary with '-h')Inspect `mount` (offline help)
aeroftp-cli help mountMount a remote as a local filesystem (FUSE on Linux/macOS, WebDAV drive on Windows)
Usage: aeroftp-cli mount [OPTIONS] <MOUNTPOINT> [URL] [PATH]
Arguments:
<MOUNTPOINT>
Local mount point: empty directory (Linux/macOS) or drive letter like "Z:" (Windows)
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote base path (default: / or the URL/profile initial path)
[default: /]
Options:
--cache-ttl <CACHE_TTL>
Metadata cache TTL in seconds (default: 30)
[default: 30]
--allow-other
Allow other users to access the mount (Linux/macOS: requires user_allow_other in /etc/fuse.conf)
--read-only
Mount as read-only (default: read-write)
--cache-poll-interval <CACHE_POLL_INTERVAL>
KE-C2: How often the mount polls the remote for changes that happened out-of-band. Accepts `30s`, `5m`, `1h`. Reserved for the directory-listing watcher landing with T-DEBT-13; the value is parsed and stored today but the polling task is not yet active. Default: `1m`
[env: AEROFTP_MOUNT_CACHE_POLL_INTERVAL=]
--attr-timeout <ATTR_TIMEOUT>
KE-C2: FUSE attribute cache lifetime (`reply.attr` TTL). Accepts `1s`, `500ms`, `5m`. Defaults to the value of `--cache-ttl` for backward compatibility
[env: AEROFTP_MOUNT_ATTR_TIMEOUT=]
--dir-cache-time <DIR_CACHE_TIME>
KE-C2: Directory-listing cache lifetime (used when checking whether a cached `readdir` result is fresh enough to serve without a remote round-trip). Accepts `30s`, `5m`. Defaults to the value of `--cache-ttl` for backward compatibility
[env: AEROFTP_MOUNT_DIR_CACHE_TIME=]
--read-chunk-size <READ_CHUNK_SIZE>
KE-C2: Maximum size of a single `read` call to the remote. Accepts `128k`, `4M`, `1G`. Larger values amortise round-trip latency on high-bandwidth links; smaller values reduce memory pressure and the cost of a cancelled read. Default: `4M`
[env: AEROFTP_MOUNT_READ_CHUNK_SIZE=]
--read-chunk-size-limit <READ_CHUNK_SIZE_LIMIT>
KE-C2: Upper bound for any adaptive ramp of the read chunk size. Reserved for the doubling-strategy code path landing with T-DEBT-13. The value is parsed and stored today but the adaptive ramp is not yet active. Default: unset (no extra cap; the per-call ceiling is `--read-chunk-size`)
[env: AEROFTP_MOUNT_READ_CHUNK_SIZE_LIMIT=]
--write-back-cache
KE-C3: Enable the FUSE kernel write-back cache. When set, the kernel buffers writes in its page cache and flushes them asynchronously to the userspace filesystem. This typically improves throughput on small/random writes at the cost of crash durability: app-visible `mtime` and `size` update on flush, not on every `write`. The capability is negotiated in the FUSE `init` handshake; the kernel may refuse it on older kernels (`FUSE_WRITEBACK_CACHE` requires kernel >= 3.15). Default: off
[env: AEROFTP_MOUNT_WRITEBACK_CACHE=]
--cache-mode <CACHE_MODE>
KE-C1: Caching policy preset. Selects `attr_timeout`, `dir_cache_time`, and the in-memory `cache_ttl` in one switch. `off`: no cache anywhere, TTL=0 on every reply (best-effort: the kernel dentry cache may still serve briefly within an RCU window). `minimal`: 1s attr TTL, no dir listing cache. `writes`: 30s TTL with the existing post-mutation invalidation on `create`/`unlink`/`rename`/ `mkdir`/`rmdir`. `full`: 300s TTL (or whatever `--cache-ttl` dictates), historical AeroFTP default. Granular overrides (`--attr-timeout`, `--dir-cache-time`) win over the mode. Default: `full`
Possible values:
- off: No in-memory metadata cache, every FUSE callback hits the remote with `TTL=0`. The Linux VFS dentry cache may still serve briefly within an RCU window, so this is best-effort no-cache rather than rigorous bypass
- minimal: `attr_timeout=1s`, no directory-listing cache. Tight enough for rapidly-changing remotes while keeping single-stat hammering bounded
- writes: `attr_timeout=dir_cache_time=cache_ttl=30s`. Suited to mounts that mutate via this process: the existing post-mutation `invalidate_dir` calls clear stale entries on `create`, `unlink`, `rmdir`, `rename`, `mkdir`
- full: `attr_timeout=dir_cache_time=cache_ttl=--cache-ttl`. The historical AeroFTP default; keeps byte-for-byte compatibility with mounts built before KE-C1 landed
[env: AEROFTP_MOUNT_CACHE_MODE=]
[default: full]
--fuse-threads <FUSE_THREADS>
T-DEBT-13c: Number of FUSE session event-loop threads. With `N > 1` the kernel can dispatch independent requests (`read`, `readdir`, `getattr`) in parallel and the mount honours the `Send + Sync` invariant of the userspace filesystem. When set the crate also enables `FUSE_DEV_IOC_CLONE`, giving each worker thread its own `/dev/fuse` descriptor for lock-free request processing. Default: unset (single-threaded loop, byte-for-byte compatible with mounts built before the 0.17 bump)
[env: AEROFTP_MOUNT_FUSE_THREADS=]
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Mount an UNLOCKED vault (Cryptomator or .aerovault/.aerozip) as a read-only local filesystem (AeroMount for unlocked vaults, #322).
Description: Mount an UNLOCKED vault (Cryptomator or .aerovault/.aerozip) as a read-only local filesystem (AeroMount for unlocked vaults, #322).
Syntax: aeroftp-cli mount-vault [OPTIONS] --kind <KIND> --vault-path <VAULT_PATH> <MOUNTPOINT>
--kind : Vault kind: `cryptomator` (a vault directory) or `aerovault` (a `.aerovault` or `.aerozip` file)--vault-path : Path to the Cryptomator vault directory or the `.aerovault`/`.aerozip` container file--read-only: Read-only (always enforced today; write-back is a later phase)-h, --help: Print help (see a summary with '-h')Inspect `mount-vault` (offline help)
aeroftp-cli help mount-vaultMount an UNLOCKED vault (Cryptomator or .aerovault/.aerozip) as a read-only local filesystem (AeroMount for unlocked vaults, #322).
The vault password is read from STDIN, never from the command line, so it never appears in the process table. The mount is always READ-ONLY and EPHEMERAL: the vault is unlocked in this process and its keys are wiped when the process exits, so unmounting is as simple as killing it (the GUI does this on vault-lock / quit). Linux only for now.
Example: `printf %s "$PW" | aeroftp-cli mount-vault /mnt/v --kind cryptomator --vault-path /path/to/vault`
Usage: aeroftp-cli mount-vault [OPTIONS] --kind <KIND> --vault-path <VAULT_PATH> <MOUNTPOINT>
Arguments:
<MOUNTPOINT>
Local mount point: an existing EMPTY directory
Options:
--kind <KIND>
Vault kind: `cryptomator` (a vault directory) or `aerovault` (a `.aerovault` or `.aerozip` file)
--vault-path <VAULT_PATH>
Path to the Cryptomator vault directory or the `.aerovault`/`.aerozip` container file
--read-only
Read-only (always enforced today; write-back is a later phase)
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: Move/rename
Description: Rename/move a remote file
Syntax: aeroftp-cli mv --profile NAME /old /new
-h, --help: Print help (see a summary with '-h')Inspect `mv` (offline help)
aeroftp-cli help mvRename/move a remote file
Usage: aeroftp-cli mv [OPTIONS] [URL] [FROM] [TO]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[FROM]
Source path
[default: ""]
[TO]
Destination path
[default: ""]
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Analyze remote disk usage
Description: Interactive disk usage explorer (ncdu-style TUI)
Syntax: aeroftp-cli ncdu --profile NAME /path [--json|--export FILE]
-d, --depth : Maximum scan depth (default: 50). See `Tree::depth` note: the field name must differ from the global `--max-depth` flag (default: 50)--export : Export scan results to JSON file instead of interactive TUI-h, --help: Print help (see a summary with '-h')Inspect `ncdu` (offline help)
aeroftp-cli help ncduInteractive disk usage explorer (ncdu-style TUI)
Usage: aeroftp-cli ncdu [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote path to scan (default: where the profile starts; `/` is the root)
Options:
-d, --depth <DEPTH>
Maximum scan depth (default: 50). See `Tree::depth` note: the field name must differ from the global `--max-depth` flag
[default: 50]
--export <EXPORT>
Export scan results to JSON file instead of interactive TUI
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Smart preview of a remote file: defaults to first 20 lines, --tail for last, --bytes for binary-safe slice
Description: Quick preview of a remote file (smart default: first 20 lines).
Syntax: aeroftp-cli peek --profile NAME /path/file [-n N] [--bytes B] [--tail]
-n, --lines : Number of lines to print (default: 20) (default: 20)-c, --bytes : Print first N bytes instead of N lines (binary-safe preview)--tail: Show the LAST lines instead of the first. Ignored when --bytes is set-h, --help: Print help (see a summary with '-h')Inspect `peek` (offline help)
aeroftp-cli help peekQuick preview of a remote file (smart default: first 20 lines).
Convenience entry that wraps `head` / `tail` for agents that want a single "show me what's in this file" command. Use `--tail` to invert direction, `--bytes N` for binary-safe byte previews, or fall back to `cat` for the full content.
Usage: aeroftp-cli peek [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote file path
[default: ""]
Options:
-n, --lines <LINES>
Number of lines to print (default: 20)
[default: 20]
-c, --bytes <BYTES>
Print first N bytes instead of N lines (binary-safe preview)
--tail
Show the LAST lines instead of the first. Ignored when --bytes is set
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: User-to-user P2P encrypted drives (identity, contacts, grant/import, publish/replicate)
Description: User-to-user P2P encrypted drives (identity, contacts, grant/import, publish/replicate)
Syntax: aeroftp-cli peer [OPTIONS] <COMMAND>
-h, --help: Print help (see a summary with '-h')Inspect `peer` (offline help)
aeroftp-cli help peerUser-to-user P2P encrypted drives (identity, contacts, grant/import, publish/replicate)
Usage: aeroftp-cli peer [OPTIONS] <COMMAND>
Commands:
identity Manage this user-partition's P2P identity (its AeroFTP-ID)
contact Manage saved P2P contacts (AeroFTP-IDs you grant drives to)
drive List or forget the drives this partition holds keys for
grant Seal a read capability for one of your drives to a contact (prints/writes a token)
import Import a capability token shared with you and remember the drive's key
publish Publish a local directory as an encrypted, versioned P2P drive
replicate Replicate a drive from a ticket, using a key you already imported
rekey Re-key a drive you publish (revocation): mint a new content key, re-encrypt + republish all files under it (old tokens can no longer read new versions), then re-grant to keep access
send Send a single file to a contact (one-shot, E2EE, no persistent drive)
knock Send a knock: a predefined-code ping (no file), shown as a notification on the recipient
action Send an action: a structured agent-to-agent message (a verb + optional JSON payload), the extensible generalization of a knock. Authenticated by AFID, fire-and-forget
receive Run the standing receive loop: accept incoming files into the inbox and print knocks (Ctrl-C to stop). The headless counterpart of the GUI "Receive files" toggle
agent One-shot agent provisioning: create + identify a peer agent in a single verb
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: safe
Summary: Segmented parallel download (alias for get with --segments preset, default 4)
Description: Segmented parallel download (alias for `get` with --segments preset)
Syntax: aeroftp-cli pget --profile NAME /remote/file [./local] [--segments N]
--segments : Number of parallel segments (range 2-16) (default: 4)-h, --help: Print help (see a summary with '-h')Inspect `pget` (offline help)
aeroftp-cli help pgetSegmented parallel download (alias for `get` with --segments preset)
Usage: aeroftp-cli pget [OPTIONS] [URL] [REMOTE] [LOCAL]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[REMOTE]
Remote file path
[default: ""]
[LOCAL]
Local destination (default: current filename)
Options:
--segments <SEGMENTS>
Number of parallel segments (range 2-16)
[default: 4]
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: Create a new server profile in the vault
Description: Create a new server profile in the vault
Syntax: aeroftp-cli profile-add [OPTIONS] --name <NAME> --protocol <PROTOCOL>
--name : Display name. Required, must be non-empty--protocol : Protocol identifier (lowercase). Matches the GUI registry: ftp, ftps, sftp, webdav, webdavs, s3, mega, dropbox, googledrive, onedrive, box, pcloud, zohoworkdrive, etc--host : Hostname or host:port. Optional for cloud providers that resolve endpoints from the protocol alone--port : TCP port. Optional; the GUI default per protocol applies when omitted (21 for FTP, 22 for SFTP, 443 for WebDAV/S, …)--username : Username for the new profile--initial-path : Initial remote path the GUI uses when connecting--local-initial-path : Initial local path for AeroFile-style local↔remote workflows--color : Optional color tag (matches the GUI swatch). Free text--provider-id : Provider id (matches `getProviderById` in the GUI). Optional; auto-derived from the protocol when possible--manual-total : Manual total-storage cap for backends with no quota API (FTP/S3/WebDAV) or that report only used space (Backblaze B2). Accepts "10 GB", "2TB", "5368709120". The provider's own total always takes precedence; this is the fallback so `df` and `profiles` can show used/total/% (item 4a)--credential-json : Seed a JSON credential blob (string) into `server_<id>` as part of creating the profile, matching the GUI Edit modal. Use for OAuth tokens, API keys, or any structured credential. For a plain password use the global `--password-stdin`. Mutually exclusive with --credential-json-file and --password-stdin--credential-json-file : Seed a JSON credential blob read from a file into `server_<id>`. Mutually exclusive with --credential-json and --password-stdin--public-url-base : HTTP base URL used to build share links for this profile (the GUI's "Public URL base", e.g. `https://www.example.com/`). Top-level profile field; without it share links must be re-entered after an import--custom-icon-url : User-chosen custom icon for the My Servers card, as a data URL (`data:image/png;base64,...`). Top-level profile field mirroring the GUI Edit modal icon picker--favicon-url : Auto-detected project favicon, as a data URL. Top-level profile field (normally set by the GUI on connect); exposed here for CLI-driven test fixtures--skip-delta-eligibility-prompt: Suppress the classic-fallback (delta-eligibility) modal for this saved server, matching the GUI checkbox. Top-level profile preference--filen-api-key : Filen CLI API key (issue #230). Stored in the vault under `filen_api_key_<id>` (NOT on the saved profile) and flags `hasStoredFilenApiKey`, exactly like the GUI Edit modal, so the profile connects via the key and skips the /v3/login + TOTP window. Only valid for `--protocol filen`. Inline value is visible in `ps`--proton-mode : Proton Drive client, as the API and CLI tabs of the GUI form: `native` is AeroFTP's own client (then `aeroftp-cli proton sign-in <SELECTOR>`), `cli` drives Proton's official `proton-drive` CLI (signed in with `proton-drive auth login`). Default: `native` in a build with the native client, `cli` otherwise. Only valid for `--protocol proton` [possible values: native, cli]--options-json : Nonsecret connection options, merged over protocol and preset defaults. Examples: {"bucket":"data","region":"eu-west-1"}, {"drive_id":"123"}, {"anonymous":true,"webdavScheme":"http"}. Secrets belong in the vault--options-json-file : Read nonsecret connection options from a JSON file--mega-mode : MEGA transport mode saved on the profile [possible values: native, megacmd]-h, --help: Print help (see a summary with '-h')Inspect `profile-add` (offline help)
aeroftp-cli help profile-addCreate a new server profile in the vault
Scriptable alternative to the GUI's New Server flow and to the interactive shell's `n` action: useful for CI setups that seed throwaway profiles. Pass the global `--password-stdin` (or a subcommand `--credential-json` / `--credential-json-file` blob for token/API-key providers) to seed the credential in the same step, so the new profile is immediately connectable; omit them and the profile is created credential-free (finish it later in the GUI Edit modal or with `profile-set-password`).
Usage: aeroftp-cli profile-add [OPTIONS] --name <NAME> --protocol <PROTOCOL>
Options:
--name <NAME>
Display name. Required, must be non-empty
--protocol <PROTOCOL>
Protocol identifier (lowercase). Matches the GUI registry: ftp, ftps, sftp, webdav, webdavs, s3, mega, dropbox, googledrive, onedrive, box, pcloud, zohoworkdrive, etc
--host <HOST>
Hostname or host:port. Optional for cloud providers that resolve endpoints from the protocol alone
--port <PORT>
TCP port. Optional; the GUI default per protocol applies when omitted (21 for FTP, 22 for SFTP, 443 for WebDAV/S, …)
--username <USERNAME>
Username for the new profile
--initial-path <PATH>
Initial remote path the GUI uses when connecting
--local-initial-path <PATH>
Initial local path for AeroFile-style local↔remote workflows
--color <COLOR>
Optional color tag (matches the GUI swatch). Free text
--provider-id <ID>
Provider id (matches `getProviderById` in the GUI). Optional; auto-derived from the protocol when possible
--manual-total <SIZE>
Manual total-storage cap for backends with no quota API (FTP/S3/WebDAV) or that report only used space (Backblaze B2). Accepts "10 GB", "2TB", "5368709120". The provider's own total always takes precedence; this is the fallback so `df` and `profiles` can show used/total/% (item 4a)
--credential-json <JSON>
Seed a JSON credential blob (string) into `server_<id>` as part of creating the profile, matching the GUI Edit modal. Use for OAuth tokens, API keys, or any structured credential. For a plain password use the global `--password-stdin`. Mutually exclusive with --credential-json-file and --password-stdin
--credential-json-file <PATH>
Seed a JSON credential blob read from a file into `server_<id>`. Mutually exclusive with --credential-json and --password-stdin
--public-url-base <URL>
HTTP base URL used to build share links for this profile (the GUI's "Public URL base", e.g. `https://www.example.com/`). Top-level profile field; without it share links must be re-entered after an import
--custom-icon-url <DATA_URL>
User-chosen custom icon for the My Servers card, as a data URL (`data:image/png;base64,...`). Top-level profile field mirroring the GUI Edit modal icon picker
--favicon-url <DATA_URL>
Auto-detected project favicon, as a data URL. Top-level profile field (normally set by the GUI on connect); exposed here for CLI-driven test fixtures
--skip-delta-eligibility-prompt
Suppress the classic-fallback (delta-eligibility) modal for this saved server, matching the GUI checkbox. Top-level profile preference
--filen-api-key <KEY>
Filen CLI API key (issue #230). Stored in the vault under `filen_api_key_<id>` (NOT on the saved profile) and flags `hasStoredFilenApiKey`, exactly like the GUI Edit modal, so the profile connects via the key and skips the /v3/login + TOTP window. Only valid for `--protocol filen`. Inline value is visible in `ps`
--proton-mode <MODE>
Proton Drive client, as the API and CLI tabs of the GUI form: `native` is AeroFTP's own client (then `aeroftp-cli proton sign-in <SELECTOR>`), `cli` drives Proton's official `proton-drive` CLI (signed in with `proton-drive auth login`). Default: `native` in a build with the native client, `cli` otherwise. Only valid for `--protocol proton`
[possible values: native, cli]
--options-json <JSON>
Nonsecret connection options, merged over protocol and preset defaults. Examples: {"bucket":"data","region":"eu-west-1"}, {"drive_id":"123"}, {"anonymous":true,"webdavScheme":"http"}. Secrets belong in the vault
--options-json-file <PATH>
Read nonsecret connection options from a JSON file
--mega-mode <MEGA_MODE>
MEGA transport mode saved on the profile
[possible values: native, megacmd]
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Authorize a saved profile without opening a browser on this machine. Read action=configure|begin|finish|status|cancel from a JSON object. Configure: client_id/client_secret/region; GitHub: mode, app_i
Description: Authorize a saved profile without opening a browser on this machine. Read action=configure|begin|finish|status|cancel from a JSON object. Configure: client_id/client_secret/region; GitHub: mode, app_id, installation_id and pem. Finish: callback_url or code+state; 4shared: oauth_token+verifier. Secret values remain in the vault
Syntax: aeroftp-cli profile-auth [OPTIONS] --request-json-file <PATH> <SELECTOR>
--request-json-file : -h, --help: Print help (see a summary with '-h')Inspect `profile-auth` (offline help)
aeroftp-cli help profile-authAuthorize a saved profile without opening a browser on this machine. Read action=configure|begin|finish|status|cancel from a JSON object. Configure: client_id/client_secret/region; GitHub: mode, app_id, installation_id and pem. Finish: callback_url or code+state; 4shared: oauth_token+verifier. Secret values remain in the vault
Usage: aeroftp-cli profile-auth [OPTIONS] --request-json-file <PATH> <SELECTOR>
Arguments:
<SELECTOR>
Options:
--request-json-file <PATH>
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Convert a profile to a different mode (replaces the original, issue #215)
Description: Convert a profile to a different mode (replaces the original, issue #215)
Syntax: aeroftp-cli profile-convert-mode [OPTIONS] --mode <MODE> <SELECTOR>
--mode : Target mode within the same provider group: `api`, `webdav`, `s3`, `ftp`; `native` or `cli` for Proton Drive--name : Optional display name for the converted profile. Defaults to the source's name--username : Override the username for the converted profile--password : Override the stored password / token for the converted profile. When omitted, the source's credential is cloned. Inline values land in argv/shell history; prefer --password-env or --password-stdin--password-env : Read the password/token from this environment variable instead of --password (keeps the secret out of argv and shell history)--password-stdin: Read the password/token from stdin (first line) instead of --password-y, --yes: Skip the interactive confirmation prompt-h, --help: Print help (see a summary with '-h')Inspect `profile-convert-mode` (offline help)
aeroftp-cli help profile-convert-modeConvert a profile to a different mode (replaces the original, issue #215)
Like `profile-duplicate-mode` but DELETES the source profile, keeping the slot index. Equivalent to the GUI's "Convert to ..." orange button. Requires `--yes` to skip confirmation; otherwise prompts on stderr when stdin is a TTY.
Proton Drive (`native`, `cli`) is switched in place instead: the profile, its id and what is bound to it stay, and every path saved for it moves to the other spelling of My Files (initial folder, AeroCloud folders, sync histories). The prompt lists them first. Refused while AeroCloud syncs with the profile or a sync of one of its folders is pending.
Usage: aeroftp-cli profile-convert-mode [OPTIONS] --mode <MODE> <SELECTOR>
Arguments:
<SELECTOR>
Source profile selector (index, name, or id)
Options:
--mode <MODE>
Target mode within the same provider group: `api`, `webdav`, `s3`, `ftp`; `native` or `cli` for Proton Drive
--name <NAME>
Optional display name for the converted profile. Defaults to the source's name
--username <USERNAME>
Override the username for the converted profile
--password <PASSWORD>
Override the stored password / token for the converted profile. When omitted, the source's credential is cloned. Inline values land in argv/shell history; prefer --password-env or --password-stdin
--password-env <VAR>
Read the password/token from this environment variable instead of --password (keeps the secret out of argv and shell history)
--password-stdin
Read the password/token from stdin (first line) instead of --password
-y, --yes
Skip the interactive confirmation prompt
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Copy a saved server profile into ANOTHER user account (#270)
Description: Copy a saved server profile into ANOTHER user account (#270)
Syntax: aeroftp-cli profile-copy-user [OPTIONS] --to-user <USER> <SELECTOR>
--to-user : Target user account name (as listed by `users list`)-h, --help: Print help (see a summary with '-h')Inspect `profile-copy-user` (offline help)
aeroftp-cli help profile-copy-userCopy a saved server profile into ANOTHER user account (#270)
Reads the profile (config + any `server_<id>` credential) from the active account and inserts an independent copy under a fresh id into the target user's partition, mirroring the GUI's "Copy to user..." context-menu action. The source profile is left untouched. When the target account is passphrase protected its password is read from `--user-passphrase` / `--passphrase-file` / `AEROFTP_USER_PASSPHRASE_<NAME>` / a TTY prompt: a profile is NEVER written into a protected partition without its passphrase. If the target already holds the same server the copy is skipped (reported as `already_present`).
Usage: aeroftp-cli profile-copy-user [OPTIONS] --to-user <USER> <SELECTOR>
Arguments:
<SELECTOR>
Selector: profile index (1-based, as shown in `profiles`) or (case-insensitive) name / id. Substring match falls back to a unique row only
Options:
--to-user <USER>
Target user account name (as listed by `users list`)
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: destructive
Summary: Delete a saved server profile from the vault
Description: Delete a saved server profile from the vault
Syntax: aeroftp-cli profile-delete [OPTIONS] <SELECTOR>
-y, --yes: Skip the interactive confirmation prompt-h, --help: Print help (see a summary with '-h')Inspect `profile-delete` (offline help)
aeroftp-cli help profile-deleteDelete a saved server profile from the vault
Mirrors the GUI `MyServersPanel` confirmDelete action: removes the profile config entry, the per-profile credential blob (`server_<id>`), and any membership in `config_favorite_servers`. Without `--yes` the command prompts for confirmation on stderr (skipped automatically when stdin is not a TTY).
Usage: aeroftp-cli profile-delete [OPTIONS] <SELECTOR>
Arguments:
<SELECTOR>
Selector: profile index (1-based, as shown in `profiles`) or (case-insensitive) name / id. Substring match falls back to a unique row only
Options:
-y, --yes
Skip the interactive confirmation prompt
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: Duplicate a saved server profile inside the vault
Description: Duplicate a saved server profile inside the vault
Syntax: aeroftp-cli profile-duplicate [OPTIONS] <SELECTOR>
--name : Optional display name for the new profile. Defaults to `<original> (copy)`--manual-total : Set (or override) the copy's manual total-storage cap. Accepts "10 GB", "2TB", "5368709120". Useful for sandbox/test profiles that exercise the item 4a quota fallback (the provider's own total still wins when it reports one)-h, --help: Print help (see a summary with '-h')Inspect `profile-duplicate` (offline help)
aeroftp-cli help profile-duplicateDuplicate a saved server profile inside the vault
Copies the profile (config + any stored credential) under a fresh id and prepends `(copy)` to its display name unless `--name` is provided. Mirrors the Duplicate action available from the GUI's server context menu and is mostly useful for sandbox/test setups where you want a sacrificial profile.
Usage: aeroftp-cli profile-duplicate [OPTIONS] <SELECTOR>
Arguments:
<SELECTOR>
Selector: profile index (1-based, as shown in `profiles`) or (case-insensitive) name / id. Substring match falls back to a unique row only
Options:
--name <NAME>
Optional display name for the new profile. Defaults to `<original> (copy)`
--manual-total <SIZE>
Set (or override) the copy's manual total-storage cap. Accepts "10 GB", "2TB", "5368709120". Useful for sandbox/test profiles that exercise the item 4a quota fallback (the provider's own total still wins when it reports one)
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Duplicate a profile into a different mode of the same provider group (issue #215)
Description: Duplicate a profile into a different mode of the same provider group (issue #215)
Syntax: aeroftp-cli profile-duplicate-mode [OPTIONS] --mode <MODE> <SELECTOR>
--mode : Target mode within the same provider group: `api`, `webdav`, `s3`, `ftp`; `native` or `cli` for Proton Drive--name : Optional display name for the new profile--username : Override the username for the new profile (use when modes expect different credential shapes, e.g. FileLu API key vs WebDAV user)--password : Override the stored password / token for the new profile. When omitted, the source's credential is cloned (works only when the two modes share credentials, e.g. Koofr/OpenDrive). Inline values land in argv/shell history; prefer --password-env or --password-stdin--password-env : Read the password/token from this environment variable instead of --password (keeps the secret out of argv and shell history)--password-stdin: Read the password/token from stdin (first line) instead of --password-h, --help: Print help (see a summary with '-h')Inspect `profile-duplicate-mode` (offline help)
aeroftp-cli help profile-duplicate-modeDuplicate a profile into a different mode of the same provider group (issue #215)
For providers that expose multiple transport surfaces against the same account (Koofr API/WebDAV, OpenDrive API/WebDAV, Filen API/Local-WebDAV/Local-S3, FileLu API/WebDAV/S3/FTP), creates a new profile in the target mode and INSERTS IT RIGHT AFTER the source. The source profile is preserved. Mode label values: `api` (native REST), `webdav`, `s3`, `ftp` (FileLu only).
Proton Drive takes `native` (AeroFTP's client) or `cli` (the official `proton-drive` CLI). The copy's initial folder is translated between the two spellings of My Files (`/my-files/...` on the CLI, `/...` natively); a folder in another section has no native equivalent and is kept as it is, reported.
Usage: aeroftp-cli profile-duplicate-mode [OPTIONS] --mode <MODE> <SELECTOR>
Arguments:
<SELECTOR>
Source profile selector (index, name, or id)
Options:
--mode <MODE>
Target mode within the same provider group: `api`, `webdav`, `s3`, `ftp`; `native` or `cli` for Proton Drive
--name <NAME>
Optional display name for the new profile
--username <USERNAME>
Override the username for the new profile (use when modes expect different credential shapes, e.g. FileLu API key vs WebDAV user)
--password <PASSWORD>
Override the stored password / token for the new profile. When omitted, the source's credential is cloned (works only when the two modes share credentials, e.g. Koofr/OpenDrive). Inline values land in argv/shell history; prefer --password-env or --password-stdin
--password-env <VAR>
Read the password/token from this environment variable instead of --password (keeps the secret out of argv and shell history)
--password-stdin
Read the password/token from stdin (first line) instead of --password
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Export saved server profiles to an encrypted `.aeroftp` file
Description: Export saved server profiles to an encrypted `.aeroftp` file
Syntax: aeroftp-cli profile-export [OPTIONS] --output <PATH>
-o, --output : Output `.aeroftp` path--password : Encryption password (visible in `ps`; prefer --password-stdin or env)--password-stdin: Read one password line from stdin--include-credentials: Bundle saved secrets into the encrypted file (per-profile passwords, OAuth/Jottacloud tokens, crypt-overlay passwords and #215 per-protocol snapshots). OFF by default: without it the file carries only the profile configuration, never secrets--ids : Export only these profiles: comma-separated, and each token is resolved the way every other profile-taking command resolves one. Four forms, in the order they are tried: the 1-based index shown by `profiles`, an exact (case-insensitive) name, an id, and a substring of a name that matches exactly one profile. An ambiguous substring is an error that lists the candidates, and a token matching nothing is an error too, never a silent full export. Quote a name that contains spaces. Defaults to every profile of the active user. The name form had always worked; the flag was called `--ids` with a value called IDS, so nobody read past it and people looked up internal ids by hand. The index and substring forms are new here, and arrived by calling the shared resolver instead of a private copy of it. Saying so in the help rather than only in the resolver is the point of this change, so leaving the two behind would have been the same defect one layer down. [aliases: --name, --names]-h, --help: Print help (see a summary with '-h')Inspect `profile-export` (offline help)
aeroftp-cli help profile-exportExport saved server profiles to an encrypted `.aeroftp` file
AeroFTP's native profile backup, byte-compatible with the GUI's My Servers > Export: a password-encrypted envelope carrying the profile list and, with `--include-credentials`, every saved secret (per-profile passwords, OAuth/Jottacloud tokens, crypt-overlay passwords and the #215 per-protocol credential snapshots). Re-import with `profile-import` here or through the GUI. Operates on the active user's vault.
Password resolution (first match wins): AEROFTP_PROFILE_PASSWORD env var -> `--password-stdin` -> `--password` -> interactive prompt.
Usage: aeroftp-cli profile-export [OPTIONS] --output <PATH>
Options:
-o, --output <PATH>
Output `.aeroftp` path
--password <PASSWORD>
Encryption password (visible in `ps`; prefer --password-stdin or env)
--password-stdin
Read one password line from stdin
--include-credentials
Bundle saved secrets into the encrypted file (per-profile passwords, OAuth/Jottacloud tokens, crypt-overlay passwords and #215 per-protocol snapshots). OFF by default: without it the file carries only the profile configuration, never secrets
--ids <ID_OR_NAME>
Export only these profiles: comma-separated, and each token is resolved the way every other profile-taking command resolves one. Four forms, in the order they are tried: the 1-based index shown by `profiles`, an exact (case-insensitive) name, an id, and a substring of a name that matches exactly one profile. An ambiguous substring is an error that lists the candidates, and a token matching nothing is an error too, never a silent full export. Quote a name that contains spaces. Defaults to every profile of the active user.
The name form had always worked; the flag was called `--ids` with a value called IDS, so nobody read past it and people looked up internal ids by hand. The index and substring forms are new here, and arrived by calling the shared resolver instead of a private copy of it. Saying so in the help rather than only in the resolver is the point of this change, so leaving the two behind would have been the same defect one layer down.
[aliases: --name, --names]
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Import server profiles from a `.aeroftp` file (existing profiles are SKIPPED, never overwritten)
Description: Import server profiles from a `.aeroftp` file (existing profiles are SKIPPED, never overwritten)
Syntax: aeroftp-cli profile-import [OPTIONS] --input <PATH>
-i, --input : Input `.aeroftp` path--password : Decryption password (same resolution order as `profile-export`)--password-stdin: Read one password line from stdin--dry-run: Preview only: decrypt the file and print which profiles would be added, skipped as duplicates, or resemble an existing profile, then exit 0 without touching the vault or the keyring. A duplicate (same profile id) is skipped, never overwritten-h, --help: Print help (see a summary with '-h')Inspect `profile-import` (offline help)
aeroftp-cli help profile-importImport server profiles from a `.aeroftp` file (existing profiles are SKIPPED, never overwritten)
Restores profiles and, when the file was exported with credentials, every saved secret back into the active user's vault, including the #215 per-protocol snapshots so a one-account-many-protocols profile keeps each mode's credentials. Profiles already present (same id or host:port:username) are skipped. Byte-compatible with My Servers > Import.
Usage: aeroftp-cli profile-import [OPTIONS] --input <PATH>
Options:
-i, --input <PATH>
Input `.aeroftp` path
--password <PASSWORD>
Decryption password (same resolution order as `profile-export`)
--password-stdin
Read one password line from stdin
--dry-run
Preview only: decrypt the file and print which profiles would be added, skipped as duplicates, or resemble an existing profile, then exit 0 without touching the vault or the keyring. A duplicate (same profile id) is skipped, never overwritten
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Move a saved server profile into ANOTHER user account (#270)
Description: Move a saved server profile into ANOTHER user account (#270)
Syntax: aeroftp-cli profile-move-user [OPTIONS] --to-user <USER> <SELECTOR>
--to-user : Target user account name (as listed by `users list`)-y, --yes: Skip the interactive confirmation prompt-h, --help: Print help (see a summary with '-h')Inspect `profile-move-user` (offline help)
aeroftp-cli help profile-move-userMove a saved server profile into ANOTHER user account (#270)
Like `profile-copy-user` but DELETES the source profile after the copy succeeds (Cut/Move semantics), mirroring the GUI's "Move to user..." action. The `server_<id>` credential and any `config_favorite_servers` membership are cleaned up on the source side. Without `--yes` the command prompts on stderr when stdin is a TTY. Same passphrase rules as `profile-copy-user`.
Usage: aeroftp-cli profile-move-user [OPTIONS] --to-user <USER> <SELECTOR>
Arguments:
<SELECTOR>
Selector: profile index (1-based, as shown in `profiles`) or (case-insensitive) name / id. Substring match falls back to a unique row only
Options:
--to-user <USER>
Target user account name (as listed by `users list`)
-y, --yes
Skip the interactive confirmation prompt
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: Set or update the credential blob for a saved server profile
Description: Set or update the credential blob for a saved server profile
Syntax: aeroftp-cli profile-set-password [OPTIONS] <SELECTOR>
--password : Inline password (visible in `ps`; prefer --password-stdin or --password-env). Mutually exclusive with the other --password* and --credential-json* sources--password-env : Read one password line from the named environment variable--password-stdin: Read one password line from stdin--credential-json : JSON credential blob (string). Stored verbatim under `server_<id>`. Mutually exclusive with the --password* flags--credential-json-file : Read JSON credential blob from a file. Mutually exclusive with --credential-json and the --password* flags-h, --help: Print help (see a summary with '-h')Inspect `profile-set-password` (offline help)
aeroftp-cli help profile-set-passwordSet or update the credential blob for a saved server profile
Writes the per-protocol credential (typically a JSON object with fields like `password`, `apiKey`, `tokens`, ...) into the vault key `server_<id>`, exactly the same place the GUI Edit modal writes to. Use this when the CLI needs to seed credentials into a vault without opening the GUI.
Two write modes: - `--password` / `--password-env` / `--password-stdin`: store the raw secret as the credential value (legacy single-secret shape; matches the FTP/SFTP/WebDAV `password` field on the GUI side). - `--credential-json` / `--credential-json-file`: store an arbitrary JSON object verbatim (use this for OAuth tokens, API keys, or any structured credential blob).
Usage: aeroftp-cli profile-set-password [OPTIONS] <SELECTOR>
Arguments:
<SELECTOR>
Selector: profile index (1-based, as shown in `profiles`) or (case-insensitive) name / id. Substring match falls back to a unique row only
Options:
--password <PASSWORD>
Inline password (visible in `ps`; prefer --password-stdin or --password-env). Mutually exclusive with the other --password* and --credential-json* sources
--password-env <ENV_VAR>
Read one password line from the named environment variable
--password-stdin
Read one password line from stdin
--credential-json <JSON>
JSON credential blob (string). Stored verbatim under `server_<id>`. Mutually exclusive with the --password* flags
--credential-json-file <PATH>
Read JSON credential blob from a file. Mutually exclusive with --credential-json and the --password* flags
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: safe
Summary: List saved servers
Description: List saved server profiles from the encrypted vault
Syntax: aeroftp-cli profiles [--json]
--sort : Override the GUI-persisted sort. Format: `<col>[:asc|desc]`. Sortable columns: name, type, used, total, pct, last, fav. Use `manual` (alias `index`) to restore the saved profile order--hide : Comma-separated columns to hide, saved for later CLI and GUI runs. Available (case-insensitive): name, type, host, used, total, pct, path, last, fav (also accepts `favorite`/`favourite`). `*` or `all` hides every optional column (`#` and Name always stay pinned)--show : Show only these columns, saved for later CLI and GUI runs. This is an exclusive allowlist: every other optional column is hidden, like the My Servers Table view in the GUI. `#` and Name always stay pinned. `*` or `all` shows every column. Same names as `--hide` --breakdown[=<BREAKDOWN>] Remember whether to append a per-protocol-class breakdown. Use `--breakdown=false` to turn it off. In JSON mode only an explicit `--breakdown` wraps the array in `{ profiles, summary, breakdown }` [possible values: true, false]-i, --interactive: Drop into an interactive prompt after the table (rclone-config-style). Drop into an interactive prompt after the table (rclone-config-style): Help, List, Tree, refresh, Groups, Users, New, Rename, Edit, Copy, Fav, re-index, Delete. Requires a TTY; ignored in JSON / non-interactive mode--group : Show only profiles in this group (case-insensitive name), the CLI analogue of the GUI group filter chip. Groups are managed from the interactive prompt (`g <selector> <group>`) or the GUI--health: Probe the local helper-app bridges (Filen Desktop / MEGAcmd) and print a status line per bridge profile after the table. Off by default: probing the loopback ports adds a small latency, so the plain listing stays instant. Mirrors the GUI's 🔴/🟠/🟢 detector--tui: Open the inline action menu (TUI) directly, skipping the `-i` line prompt (Ehud #311). Offers every verb of the `-i` action bar. Implies interactive and needs a TTY; equivalent to running `-i` and immediately typing `tui`. Quitting the menu exits-h, --help: Print help (see a summary with '-h')Inspect `profiles` (offline help)
aeroftp-cli help profilesList saved server profiles from the encrypted vault
Mirrors the My Servers Table view in the GUI: the same column visibility and sort persisted by `useMyServersColumns` are honoured here. Column choices and breakdown are saved for later CLI and GUI runs. `--sort` overrides only this run; JSON stays a flat array unless `--breakdown` is explicitly enabled.
Usage: aeroftp-cli profiles [OPTIONS]
Options:
--sort <COL[:DIR]>
Override the GUI-persisted sort. Format: `<col>[:asc|desc]`. Sortable columns: name, type, used, total, pct, last, fav. Use `manual` (alias `index`) to restore the saved profile order
--hide <COLS>
Comma-separated columns to hide, saved for later CLI and GUI runs. Available (case-insensitive): name, type, host, used, total, pct, path, last, fav (also accepts `favorite`/`favourite`). `*` or `all` hides every optional column (`#` and Name always stay pinned)
--show <COLS>
Show only these columns, saved for later CLI and GUI runs. This is an exclusive allowlist: every other optional column is hidden, like the My Servers Table view in the GUI. `#` and Name always stay pinned. `*` or `all` shows every column. Same names as `--hide`
--breakdown[=<BREAKDOWN>]
Remember whether to append a per-protocol-class breakdown. Use `--breakdown=false` to turn it off. In JSON mode only an explicit `--breakdown` wraps the array in `{ profiles, summary, breakdown }`
[possible values: true, false]
-i, --interactive
Drop into an interactive prompt after the table (rclone-config-style). Drop into an interactive prompt after the table (rclone-config-style): Help, List, Tree, refresh, Groups, Users, New, Rename, Edit, Copy, Fav, re-index, Delete. Requires a TTY; ignored in JSON / non-interactive mode
--group <NAME>
Show only profiles in this group (case-insensitive name), the CLI analogue of the GUI group filter chip. Groups are managed from the interactive prompt (`g <selector> <group>`) or the GUI
--health
Probe the local helper-app bridges (Filen Desktop / MEGAcmd) and print a status line per bridge profile after the table. Off by default: probing the loopback ports adds a small latency, so the plain listing stays instant. Mirrors the GUI's 🔴/🟠/🟢 detector
--tui
Open the inline action menu (TUI) directly, skipping the `-i` line prompt (Ehud #311). Offers every verb of the `-i` action bar. Implies interactive and needs a TTY; equivalent to running `-i` and immediately typing `tui`. Quitting the menu exits
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Sign a Proton Drive profile on AeroFTP's own client in or out
Description: Sign a Proton Drive profile on AeroFTP's own client in or out
Syntax: aeroftp-cli proton [OPTIONS] <COMMAND>
-h, --help: Print help (see a summary with '-h')Inspect `proton` (offline help)
aeroftp-cli help protonSign a Proton Drive profile on AeroFTP's own client in or out
For profiles on AeroFTP's native Proton Drive client (`profile-add --protocol proton --proton-mode native`). A profile on Proton's official CLI signs in with `proton-drive auth login` instead.
Usage: aeroftp-cli proton [OPTIONS] <COMMAND>
Commands:
sign-in Sign the profile in on Proton's page in the browser
sign-out End the profile's session on Proton and remove it from the vault
status Whether the profile has a saved Proton session, as the GUI form shows
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: destructive
Summary: Remove a path and all of its contents (recursive delete)
Description: Remove a path and all of its contents (recursive delete)
Syntax: aeroftp-cli purge [OPTIONS] [URL] [PATH]
-f, --force: Skip the confirmation prompt--dry-run: Preview only: list what would be deleted and the bytes reclaimed, delete nothing. Never prompts-h, --help: Print help (see a summary with '-h')Inspect `purge` (offline help)
aeroftp-cli help purgeRemove a path and all of its contents (recursive delete)
Same global filters as `rm`: --include/--exclude-global (and their -from files), --min-size/--max-size, --min-age/--max-age and --files-from. Include and exclude globs match the FILE NAME, not the path. With any of them active, `purge` deletes only the matching files and only the directories left empty afterwards; without them it removes everything.
Usage: aeroftp-cli purge [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote path to purge
[default: ""]
Options:
-f, --force
Skip the confirmation prompt
--dry-run
Preview only: list what would be deleted and the bytes reclaimed, delete nothing. Never prompts
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: Upload file (-n: no-clobber, skip if exists)
Description: Upload file(s) to remote server (supports glob patterns like "*.csv")
Syntax: aeroftp-cli put --profile NAME ./local /remote/path [-n]
-r, --recursive: Recursive upload (directories)-n, --no-clobber: Do not overwrite existing remote files--delta: Z.4.5 R1: route the upload through `AerorsyncDeltaTransport` when the provider exposes one (SFTP today). Auto-falls back to the classic transfer when the transport is not delta-eligible (file too small, or no host key fingerprint pinned from this session). Password authentication is not a reason: a delta batch opens over a password-only server too, measured 2026-09-17. No-op for non-SFTP providers and for recursive / glob uploads--access : Issue #252: privacy level to apply to the uploaded file on providers that model access (OpenDrive). Defaults to `private` when omitted on an OpenDrive target. Applies to single-file uploads; for recursive/glob uploads set the destination folder privacy with `mkdir --access` (it cascades to children) Possible values: - private: Not listed, not shared; reachable only by the owner - public: Anyone with the link can access; searchable - hidden: Accessible by direct link only; not searchable-h, --help: Print help (see a summary with '-h')Inspect `put` (offline help)
aeroftp-cli help putUpload file(s) to remote server (supports glob patterns like "*.csv")
Usage: aeroftp-cli put [OPTIONS] [URL] [LOCAL] [REMOTE]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[LOCAL]
Local file path (supports glob patterns like "*.csv")
[default: ""]
[REMOTE]
Remote destination path
Options:
-r, --recursive
Recursive upload (directories)
-n, --no-clobber
Do not overwrite existing remote files
--delta
Z.4.5 R1: route the upload through `AerorsyncDeltaTransport` when the provider exposes one (SFTP today). Auto-falls back to the classic transfer when the transport is not delta-eligible (file too small, or no host key fingerprint pinned from this session). Password authentication is not a reason: a delta batch opens over a password-only server too, measured 2026-09-17. No-op for non-SFTP providers and for recursive / glob uploads
--access <ACCESS>
Issue #252: privacy level to apply to the uploaded file on providers that model access (OpenDrive). Defaults to `private` when omitted on an OpenDrive target. Applies to single-file uploads; for recursive/glob uploads set the destination folder privacy with `mkdir --access` (it cascades to children)
Possible values:
- private: Not listed, not shared; reachable only by the owner
- public: Anyone with the link can access; searchable
- hidden: Accessible by direct link only; not searchable
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Print where a profile starts on the remote, without connecting
Description: Print where a profile starts on the remote, without connecting
Syntax: aeroftp-cli pwd [OPTIONS] [SELECTOR]
-h, --help: Print help (see a summary with '-h')Inspect `pwd` (offline help)
aeroftp-cli help pwdPrint where a profile starts on the remote, without connecting
Every relative path this CLI is given is resolved against the profile's base path, and until now the only way to see that base was to run a command that touches the network and read the "Note: path '/' resolved to ..." line it prints on stderr. That note is good, but it is a side effect of doing something else: you had to perform an operation to ask a question. This answers the question on its own.
Reads the saved profile and never opens a connection, so it costs nothing and works while the server is down. With `--json` it is the shape an agent can consume before planning any path.
Usage: aeroftp-cli pwd [OPTIONS] [SELECTOR]
Arguments:
[SELECTOR]
Profile selector: the 1-based index from `profiles`, an exact name, an id, or a unique substring of a name. Defaults to the global `--profile` when omitted
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: Upload stdin directly to a remote file
Description: Upload stdin directly to a remote file
Syntax: aeroftp-cli rcat [OPTIONS] [URL] [REMOTE]
-h, --help: Print help (see a summary with '-h')Inspect `rcat` (offline help)
aeroftp-cli help rcatUpload stdin directly to a remote file
Usage: aeroftp-cli rcat [OPTIONS] [URL] [REMOTE]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[REMOTE]
Remote destination path
[default: ""]
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: rclone-crypt compatible operations (separate from `crypt` overlay)
Description: rclone-crypt compatible operations (separate from `crypt` overlay)
Syntax: aeroftp-cli rclone-crypt [OPTIONS] <COMMAND>
-h, --help: Print help (see a summary with '-h')Inspect `rclone-crypt` (offline help)
aeroftp-cli help rclone-cryptrclone-crypt compatible operations (separate from `crypt` overlay)
Usage: aeroftp-cli rclone-crypt [OPTIONS] <COMMAND>
Commands:
put Encrypt and upload a file using the rclone crypt format
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Return categorized local-vs-remote diff for agents
Description: Reconcile local and remote trees with categorized diff output
Syntax: aeroftp-cli reconcile --profile NAME ./local /remote --json
--checksum: Use checksums instead of size-only comparison where available--one-way: Only consider files present locally-e, --exclude : Exclude patterns (can repeat: -e "*.tmp" -e ".git")--reconcile-format : Output verbosity: detailed (default) or summary [possible values: detailed, summary] (default: detailed)-h, --help: Print help (see a summary with '-h')Inspect `reconcile` (offline help)
aeroftp-cli help reconcileReconcile local and remote trees with categorized diff output
Usage: aeroftp-cli reconcile [OPTIONS] [URL] [LOCAL] [REMOTE]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[LOCAL]
Local directory
[default: .]
[REMOTE]
Remote directory (default: where the profile starts; `/` is the root)
Options:
--checksum
Use checksums instead of size-only comparison where available
--one-way
Only consider files present locally
-e, --exclude <EXCLUDE>
Exclude patterns (can repeat: -e "*.tmp" -e ".git")
--reconcile-format <RECONCILE_FORMAT>
Output verbosity: detailed (default) or summary
[default: detailed]
[possible values: detailed, summary]
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: destructive
Summary: Delete file (-f: force, no error if not found)
Description: Delete a remote file or directory
Syntax: aeroftp-cli rm --profile NAME /path [-f]
-r, --recursive: Recursive delete (directories)-f, --force: Force (no confirmation for recursive)--dry-run: Preview only: list what would be deleted and the bytes reclaimed, delete nothing. Never prompts-h, --help: Print help (see a summary with '-h')Inspect `rm` (offline help)
aeroftp-cli help rmDelete a remote file or directory
The global filters narrow what goes: --include/--exclude-global (and their -from files), --min-size/--max-size, --min-age/--max-age and --files-from. Include and exclude globs are matched against the FILE NAME, not the path, so `--include "*.snap"` works while `--include "v3.*/**"` matches nothing; --files-from lists paths relative to the deleted directory. A filtered recursive delete removes only the matching files, and only the directories it empties in doing so.
Usage: aeroftp-cli rm [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote path to delete
[default: ""]
Options:
-r, --recursive
Recursive delete (directories)
-f, --force
Force (no confirmation for recursive)
--dry-run
Preview only: list what would be deleted and the bytes reclaimed, delete nothing. Never prompts
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: destructive
Summary: Remove a single empty directory (fails if not empty)
Description: Remove a single empty directory (fails if not empty)
Syntax: aeroftp-cli rmdir [OPTIONS] [URL] [PATH]
-h, --help: Print help (see a summary with '-h')Inspect `rmdir` (offline help)
aeroftp-cli help rmdirRemove a single empty directory (fails if not empty)
Usage: aeroftp-cli rmdir [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote directory to remove
[default: ""]
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: destructive
Summary: Recursively remove EMPTY directories under a path (files and non-empty directories are left untouched; the path itself is never removed). Dry-run by default; --force to delete
Description: Recursively remove EMPTY directories under a path (files and non-empty directories are left untouched; the path itself is never removed). Dry-run by default; --force to delete
Syntax: aeroftp-cli rmdirs [OPTIONS] [URL] [PATH]
--force: Actually remove the empty directories (default: dry-run)-h, --help: Print help (see a summary with '-h')Inspect `rmdirs` (offline help)
aeroftp-cli help rmdirsRecursively remove EMPTY directories under a path (files and non-empty directories are left untouched; the path itself is never removed). Dry-run by default; --force to delete
Usage: aeroftp-cli rmdirs [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote path to prune (default: where the profile starts; `/` is the root)
Options:
--force
Actually remove the empty directories (default: dry-run)
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Expose a remote over a local protocol bridge
Description: Serve a remote over a local protocol
Syntax: aeroftp-cli serve <http|webdav|ftp|sftp> --profile NAME /path
-h, --help: Print help (see a summary with '-h')Inspect `serve` (offline help)
aeroftp-cli help serveServe a remote over a local protocol
Usage: aeroftp-cli serve [OPTIONS] <COMMAND>
Commands:
http Serve a remote or a local folder over local HTTP (read-only)
webdav Serve a remote or a local folder over local WebDAV (read-write)
ftp Serve a remote or a local folder over local FTP (read-write)
sftp Serve a remote or a local folder over local SFTP (SSH file transfer, read-write)
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Send a SITE command through an FTP/FTPS session and print the server's reply
Description: Send a SITE command through an FTP/FTPS session and print the server's reply
Syntax: aeroftp-cli site [OPTIONS] [URL] [COMMAND]...
--timeout : Seconds to wait for the complete reply (1-900) (default: 60)--secret : Ask for a value without echo and put it where {NAME} appears (repeatable); AEROFTP_SITE_SECRET_<NAME> supplies it without asking--file : Send the SITE commands of a file, one per line ('-' reads stdin); blank lines and # comments are skipped--strip-codes: Print the reply lines without their NNN- / NNN prefix--fail-fast: With --file, also stop at the first 4xx or 5xx reply--template : Run a template saved on --profile instead of a typed command--set : Fill a text or number placeholder (repeatable). A secret placeholder is refused here-h, --help: Print help (see a summary with '-h')Inspect `site` (offline help)
aeroftp-cli help siteSend a SITE command through an FTP/FTPS session and print the server's reply
Usage: aeroftp-cli site [OPTIONS] [URL] [COMMAND]...
Arguments:
[URL]
Server URL (omit when using --profile)
[COMMAND]...
The SITE command and its arguments, with or without the word SITE (e.g. USER alice)
Options:
--timeout <SECS>
Seconds to wait for the complete reply (1-900)
[default: 60]
--secret <NAME>
Ask for a value without echo and put it where {NAME} appears (repeatable); AEROFTP_SITE_SECRET_<NAME> supplies it without asking
--file <PATH>
Send the SITE commands of a file, one per line ('-' reads stdin); blank lines and # comments are skipped
--strip-codes
Print the reply lines without their NNN- / NNN prefix
--fail-fast
With --file, also stop at the first 4xx or 5xx reply
--template <NAME>
Run a template saved on --profile instead of a typed command
--set <NAME=VALUE>
Fill a text or number placeholder (repeatable). A secret placeholder is refused here
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Examples:
aeroftp-cli site --profile glftpd USER alice
aeroftp-cli site ftps://admin@ftp.example.com CHANGE alice ratio 5
aeroftp-cli site --profile glftpd --secret pw CHPASS alice {pw}
aeroftp-cli site --profile glftpd --file admin.txt --fail-fast
Options go before the command: everything from the command's first word on is
sent to the server as typed, options included.
The command travels on the FTP control connection; the reply is printed as the
server sent it, every line with its code. A reply code does not say whether the
command worked: glFTPd answers 200 to some refusals, so read the text.
Arguments typed on the command line stay in your shell history and are visible
to other local users while the command runs: pass passwords with --secret, which
asks for the value without echo (or reads AEROFTP_SITE_SECRET_<NAME>) and puts it
where {NAME} appears. On plain FTP everything, passwords included, crosses the
network unencrypted.
A command is sent once. If the connection fails or the reply does not arrive in
time, the outcome is unknown: the server may or may not have applied it, and it is
not sent again (exit 8 or 1).
Exit codes:
0 the server replied with a 1xx, 2xx or 3xx code
10 the server replied with a 4xx or 5xx code
8 no reply within --timeout: outcome unknown, not sent again (a slow server
script may need a longer --timeout)
1 not connected (nothing was sent), or the connection was lost or the reply
could not be read after sending: outcome unknown, not sent again
5 invalid command (empty, control character, longer than 1024 bytes)
7 the connection is not FTP or FTPS
--template NAME runs a template saved on --profile (see site-template).
Text and number placeholders are filled with --set NAME=VALUE, or asked for
when this is a terminal. A {name:secret} placeholder is refused by --set:
it is asked for without echo, or read from AEROFTP_SITE_SECRET_<NAME>.
The filled command is printed to stderr with secrets masked, then sent once.
Categories: advanced
Summary: List, import, export, add and remove SITE templates saved on a profile
Description: List, import, export, add and remove SITE templates saved on a profile
Syntax: aeroftp-cli site-template [OPTIONS] <COMMAND>
-h, --help: Print help (see a summary with '-h')Inspect `site-template` (offline help)
aeroftp-cli help site-templateList, import, export, add and remove SITE templates saved on a profile
Usage: aeroftp-cli site-template [OPTIONS] <COMMAND>
Commands:
list List the templates saved on --profile
import Add templates from a built-in catalog, or from a JSON file. A name already on the profile, ignoring ASCII case, is left as saved
export Print the profile's templates as a catalog, or write them to a file
add Save a SITE line. A password position must be a {name:secret} placeholder
remove Remove one template (exact name, or a unique part of it)
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: safe
Summary: Show total size and object count under a path (recursive scan). A scan cancelled with Ctrl-C still prints the figure it reached and exits 4 (partial), so a script can tell it from a complete measureme
Description: Show total size and object count under a path (recursive scan). A scan cancelled with Ctrl-C still prints the figure it reached and exits 4 (partial), so a script can tell it from a complete measurement
Syntax: aeroftp-cli size [OPTIONS] [URL] [PATH]
-h, --help: Print help (see a summary with '-h')Inspect `size` (offline help)
aeroftp-cli help sizeShow total size and object count under a path (recursive scan). A scan cancelled with Ctrl-C still prints the figure it reached and exits 4 (partial), so a script can tell it from a complete measurement
Usage: aeroftp-cli size [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote path to measure (default: profile initial path / root)
[default: ""]
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: safe
Summary: Measure upload/download throughput against a writable remote
Description: Measure upload/download throughput against a writable remote
Syntax: aeroftp-cli speed [OPTIONS] [URL]
-s, --test-size : Test file size (e.g. 1M, 8M, 64M, 1G). Also accepts --size / -s [alias: --size] (default: 10M)--iterations : Number of upload/download iterations (default: 1)--remote-path : Remote path override for the temporary benchmark file--no-integrity: Skip SHA-256 integrity verification (faster but less rigorous)--json-out : Write a JSON v1 report to this path-h, --help: Print help (see a summary with '-h')Inspect `speed` (offline help)
aeroftp-cli help speedMeasure upload/download throughput against a writable remote
Usage: aeroftp-cli speed [OPTIONS] [URL]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
Options:
-s, --test-size <TEST_SIZE>
Test file size (e.g. 1M, 8M, 64M, 1G). Also accepts --size / -s
[default: 10M]
[alias: --size]
--iterations <ITERATIONS>
Number of upload/download iterations
[default: 1]
--remote-path <REMOTE_PATH>
Remote path override for the temporary benchmark file
--no-integrity
Skip SHA-256 integrity verification (faster but less rigorous)
--json-out <JSON_OUT>
Write a JSON v1 report to this path
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: safe
Summary: Benchmark and rank multiple servers side-by-side
Description: Benchmark and rank multiple servers side-by-side
Syntax: aeroftp-cli speed-compare [OPTIONS] <URLS>...
-s, --test-size : Test file size (e.g. 10M, 100M) [alias: --size] (default: 10M)--parallel : Maximum parallel runs (1-4, default 2) (default: 2)--no-integrity: Skip SHA-256 integrity verification--json-out : Write a JSON v1 compare report to this path--csv-out : Write a CSV report to this path--md-out : Write a Markdown report to this path-h, --help: Print help (see a summary with '-h')Inspect `speed-compare` (offline help)
aeroftp-cli help speed-compareBenchmark and rank multiple servers side-by-side
Usage: aeroftp-cli speed-compare [OPTIONS] <URLS>...
Arguments:
<URLS>...
Two or more server URLs to compare
Options:
-s, --test-size <TEST_SIZE>
Test file size (e.g. 10M, 100M)
[default: 10M]
[alias: --size]
--parallel <PARALLEL>
Maximum parallel runs (1-4, default 2)
[default: 2]
--no-integrity
Skip SHA-256 integrity verification
--json-out <JSON_OUT>
Write a JSON v1 compare report to this path
--csv-out <CSV_OUT>
Write a CSV report to this path
--md-out <MD_OUT>
Write a Markdown report to this path
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: safe
Summary: File metadata
Description: Show file/directory metadata
Syntax: aeroftp-cli stat --profile NAME /path/ [--json]
-h, --help: Print help (see a summary with '-h')Inspect `stat` (offline help)
aeroftp-cli help statShow file/directory metadata
Usage: aeroftp-cli stat [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote path
[default: ""]
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: destructive, modify
Summary: Sync with orphan deletion (capped by --max-delete, default 100; non-interactive runs require an explicit --max-delete)
Description: Synchronize local and remote directories
Syntax: aeroftp-cli sync --profile NAME ./local/ /remote/ --delete
--direction : Sync direction: upload, download, both (default: both)--dry-run: Dry run (show what would happen without executing)--delete: Delete orphaned files on destination-e, --exclude : Exclude patterns (can repeat: --exclude "*.tmp" --exclude ".git") --error-correction[=<LEVEL>] Generate AeroSync Reed-Solomon .aerocorrect sidecars after uploads. Optional level: low, medium, quartile, high, or a percentage 5-50 [alias: --ec]--ec-max-overhead : Minimum-benefit gate for EC: skip a file's .aerocorrect sidecar when its size would exceed this percentage of the file (tiny files balloon past the parity floor). 0 (default) disables the gate. Has no effect without --error-correction--track-renames: Detect renamed files by hash to avoid re-upload--max-delete : Safety limit: abort if more than N files would be deleted, or more than N% of the files on the side they are deleted from--backup-dir : Copy each local file into this directory before sync deletes it; a file whose copy fails is not deleted and is reported. Local deletes only: files overwritten by a transfer and files deleted on the remote are not backed up--backup-suffix : Suffix for backup files (e.g., ".bak") (default: "")--suffix-keep-extension: Place suffix before the file extension (file.bak.txt instead of file.txt.bak)--compare-dest : Skip transfer if file exists in this local directory with same size+mtime--copy-dest : Copy from this local directory instead of downloading if file matches size+mtime--from-reconcile : Consume a reconcile JSON file instead of re-scanning local and remote trees--conflict-mode : What to do with a file that differs on both sides and neither copy is clearly newer. --direction both: newer (default), older, larger, smaller, rename, skip. --direction upload|download: source (default, the source copy wins) or skip (leave the destination alone)--skip-matching: Trust size-only matches and skip transfers even when mtimes differ--update: One-way sync: never overwrite a destination copy that is newer than the source (beyond --modify-window), like rsync --update. The GUI Backup and Update presets sync this way--modify-window : Seconds within which two modification times are the same instant (default 2). Raised to the backend's own precision; a backend that keeps no comparable time (FTP without MLSD included) is compared by size only, and the run says so. The same rule as the GUI compare--checksum: Compare files of the same size by checksum instead of modification time: a file whose checksum matches is left alone whatever its date, one that differs is synced. Uses the backend's server-side checksums; a file without one is compared by size and time, and the run counts it--resync: Discard previous bisync snapshot and rebuild from scratch--watch: Watch local directory for changes and re-sync automatically--watch-mode : Watcher backend: auto, native, poll (default: auto) (default: auto)--watch-debounce-ms : Debounce window in milliseconds (default: 1500) (default: 1500)--watch-cooldown : Minimum seconds between consecutive re-syncs (default: 15) (default: 15)--watch-rescan : Full rescan interval in seconds, 0 to disable (default: 300) (default: 300)--watch-no-initial: Skip the initial full sync on startup--local: Force local-to-local sync mode (no remote). Auto-detected when both paths are absolute and no --profile / URL is given--no-local-delta: Disable LocalDeltaTransport for local-to-local sync; use plain copy instead. No-op for remote sync--delta: Route remote SFTP uploads/downloads through the AerorsyncBatch session-reuse path (1 SSH handshake + N channel-execs across the whole batch). Auto-falls back to classic SFTP per-file when the transport reports `TooSmall` or the SFTP provider does not expose a delta transport (no host key fingerprint pinned from this session; password authentication is not a reason). On transient SSH channel drops the batch transparently reconnects once (Z.1.2). No-op for non-SFTP backends and for local-to-local sync (which uses LocalDeltaTransport via --no-local-delta)-h, --help: Print help (see a summary with '-h')Inspect `sync` (offline help)
aeroftp-cli help syncSynchronize local and remote directories
Usage: aeroftp-cli sync [OPTIONS] [URL] [LOCAL] [REMOTE]
Arguments:
[URL]
Server URL or local folder (omit when using --profile). With two local folders and no REMOTE, the local-to-local copier runs; give a REMOTE other than / to sync against the first folder as a remote
[LOCAL]
Local directory path
[default: .]
[REMOTE]
Remote directory path (default: where the profile starts; `/` is the root)
Options:
--direction <DIRECTION>
Sync direction: upload, download, both
[default: both]
--dry-run
Dry run (show what would happen without executing)
--delete
Delete orphaned files on destination
-e, --exclude <EXCLUDE>
Exclude patterns (can repeat: --exclude "*.tmp" --exclude ".git")
--error-correction[=<LEVEL>]
Generate AeroSync Reed-Solomon .aerocorrect sidecars after uploads. Optional level: low, medium, quartile, high, or a percentage 5-50
[alias: --ec]
--ec-max-overhead <PCT>
Minimum-benefit gate for EC: skip a file's .aerocorrect sidecar when its size would exceed this percentage of the file (tiny files balloon past the parity floor). 0 (default) disables the gate. Has no effect without --error-correction
[default: 0]
--track-renames
Detect renamed files by hash to avoid re-upload
--max-delete <MAX_DELETE>
Safety limit: abort if more than N files would be deleted, or more than N% of the files on the side they are deleted from
--backup-dir <BACKUP_DIR>
Copy each local file into this directory before sync deletes it; a file whose copy fails is not deleted and is reported. Local deletes only: files overwritten by a transfer and files deleted on the remote are not backed up
--backup-suffix <BACKUP_SUFFIX>
Suffix for backup files (e.g., ".bak")
[default: ""]
--suffix-keep-extension
Place suffix before the file extension (file.bak.txt instead of file.txt.bak)
--compare-dest <COMPARE_DEST>
Skip transfer if file exists in this local directory with same size+mtime
--copy-dest <COPY_DEST>
Copy from this local directory instead of downloading if file matches size+mtime
--from-reconcile <FROM_RECONCILE>
Consume a reconcile JSON file instead of re-scanning local and remote trees
--conflict-mode <CONFLICT_MODE>
What to do with a file that differs on both sides and neither copy is clearly newer. --direction both: newer (default), older, larger, smaller, rename, skip. --direction upload|download: source (default, the source copy wins) or skip (leave the destination alone)
--skip-matching
Trust size-only matches and skip transfers even when mtimes differ
--update
One-way sync: never overwrite a destination copy that is newer than the source (beyond --modify-window), like rsync --update. The GUI Backup and Update presets sync this way
--modify-window <SECS>
Seconds within which two modification times are the same instant (default 2). Raised to the backend's own precision; a backend that keeps no comparable time (FTP without MLSD included) is compared by size only, and the run says so. The same rule as the GUI compare
--checksum
Compare files of the same size by checksum instead of modification time: a file whose checksum matches is left alone whatever its date, one that differs is synced. Uses the backend's server-side checksums; a file without one is compared by size and time, and the run counts it
--resync
Discard previous bisync snapshot and rebuild from scratch
--watch
Watch local directory for changes and re-sync automatically
--watch-mode <WATCH_MODE>
Watcher backend: auto, native, poll (default: auto)
[default: auto]
--watch-debounce-ms <WATCH_DEBOUNCE_MS>
Debounce window in milliseconds (default: 1500)
[default: 1500]
--watch-cooldown <WATCH_COOLDOWN>
Minimum seconds between consecutive re-syncs (default: 15)
[default: 15]
--watch-rescan <WATCH_RESCAN>
Full rescan interval in seconds, 0 to disable (default: 300)
[default: 300]
--watch-no-initial
Skip the initial full sync on startup
--local
Force local-to-local sync mode (no remote). Auto-detected when both paths are absolute and no --profile / URL is given
--no-local-delta
Disable LocalDeltaTransport for local-to-local sync; use plain copy instead. No-op for remote sync
--delta
Route remote SFTP uploads/downloads through the AerorsyncBatch session-reuse path (1 SSH handshake + N channel-execs across the whole batch). Auto-falls back to classic SFTP per-file when the transport reports `TooSmall` or the SFTP provider does not expose a delta transport (no host key fingerprint pinned from this session; password authentication is not a reason). On transient SSH channel drops the batch transparently reconnects once (Z.1.2). No-op for non-SFTP backends and for local-to-local sync (which uses LocalDeltaTransport via --no-local-delta)
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Preflight sync checks, risks, and next command
Description: Preflight checks and risk summary before sync
Syntax: aeroftp-cli sync-doctor --profile NAME ./local /remote --json
--direction : Sync direction: upload, download, both (default: both)--delete: Delete orphaned files on destination-e, --exclude : Exclude patterns--track-renames: Detect renamed files by hash to avoid re-upload--conflict-mode : Conflict resolution for --direction both: newer, older, larger, smaller, rename, skip (default: newer)--resync: Discard previous bisync snapshot and rebuild from scratch--checksum: Use checksums instead of size/mtime --error-correction[=<LEVEL>] Estimate AeroSync Reed-Solomon .aerocorrect sidecar cost for planned uploads. Optional level: low, medium, quartile, high, or a percentage 5-50 [alias: --ec]--ec-max-overhead : Minimum-benefit gate for the EC estimate: count a file as a low-benefit skip when its sidecar would exceed this percentage of the file size. 0 (default) disables the gate, matching the default upload behavior-h, --help: Print help (see a summary with '-h')Inspect `sync-doctor` (offline help)
aeroftp-cli help sync-doctorPreflight checks and risk summary before sync
Usage: aeroftp-cli sync-doctor [OPTIONS] [URL] [LOCAL] [REMOTE]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[LOCAL]
Local directory path
[default: .]
[REMOTE]
Remote directory path (default: where the profile starts; `/` is the root)
Options:
--direction <DIRECTION>
Sync direction: upload, download, both
[default: both]
--delete
Delete orphaned files on destination
-e, --exclude <EXCLUDE>
Exclude patterns
--track-renames
Detect renamed files by hash to avoid re-upload
--conflict-mode <CONFLICT_MODE>
Conflict resolution for --direction both: newer, older, larger, smaller, rename, skip
[default: newer]
--resync
Discard previous bisync snapshot and rebuild from scratch
--checksum
Use checksums instead of size/mtime
--error-correction[=<LEVEL>]
Estimate AeroSync Reed-Solomon .aerocorrect sidecar cost for planned uploads. Optional level: low, medium, quartile, high, or a percentage 5-50
[alias: --ec]
--ec-max-overhead <PCT>
Minimum-benefit gate for the EC estimate: count a file as a low-benefit skip when its sidecar would exceed this percentage of the file size. 0 (default) disables the gate, matching the default upload behavior
[default: 0]
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Read last lines of a remote text file
Description: Print last N lines of a remote file
Syntax: aeroftp-cli tail --profile NAME /path/file [-n N]
-n, --lines : Number of lines to print (default: 20) (default: 20)-h, --help: Print help (see a summary with '-h')Inspect `tail` (offline help)
aeroftp-cli help tailPrint last N lines of a remote file
Usage: aeroftp-cli tail [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote file path
[default: ""]
Options:
-n, --lines <LINES>
Number of lines to print (default: 20)
[default: 20]
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Create file or update modified time
Description: Create empty file or update timestamp
Syntax: aeroftp-cli touch --profile NAME /path/file [--timestamp ISO8601]
--timestamp : Timestamp override (ISO 8601)-h, --help: Print help (see a summary with '-h')Inspect `touch` (offline help)
aeroftp-cli help touchCreate empty file or update timestamp
Usage: aeroftp-cli touch [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote file path
[default: ""]
Options:
--timestamp <TIMESTAMP>
Timestamp override (ISO 8601)
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: Copy files between two saved profiles (cross-profile, no local hop on disk)
Description: Transfer files between two saved profiles (cross-profile copy)
Syntax: aeroftp-cli transfer "SRC_PROFILE" "DST_PROFILE" /src/path /dst/path [-r] [--dry-run] [--skip-existing]
-r, --recursive: Recursive (copy directories)--dry-run: Plan without executing--skip-existing: Skip equal-size files whose destination time is not older (size only when times are unavailable)-h, --help: Print help (see a summary with '-h')Inspect `transfer` (offline help)
aeroftp-cli help transferTransfer files between two saved profiles (cross-profile copy)
Usage: aeroftp-cli transfer [OPTIONS] <SOURCE_PROFILE> <DEST_PROFILE> <SOURCE_PATH> <DEST_PATH>
Arguments:
<SOURCE_PROFILE>
Source profile name (saved in vault)
<DEST_PROFILE>
Destination profile name (saved in vault)
<SOURCE_PATH>
Remote path on source
<DEST_PATH>
Remote path on destination
Options:
-r, --recursive
Recursive (copy directories)
--dry-run
Plan without executing
--skip-existing
Skip equal-size files whose destination time is not older (size only when times are unavailable)
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Preflight cross-profile transfer checks, plan, and risks
Description: Preflight checks and risk summary before cross-profile transfer
Syntax: aeroftp-cli transfer-doctor "SRC" "DST" /src /dst --json
-r, --recursive: Recursive (copy directories)--skip-existing: Skip files already present on destination-h, --help: Print help (see a summary with '-h')Inspect `transfer-doctor` (offline help)
aeroftp-cli help transfer-doctorPreflight checks and risk summary before cross-profile transfer
Usage: aeroftp-cli transfer-doctor [OPTIONS] <SOURCE_PROFILE> <DEST_PROFILE> <SOURCE_PATH> <DEST_PATH>
Arguments:
<SOURCE_PROFILE>
Source profile name (saved in vault)
<DEST_PROFILE>
Destination profile name (saved in vault)
<SOURCE_PATH>
Remote path on source
<DEST_PATH>
Remote path on destination
Options:
-r, --recursive
Recursive (copy directories)
--skip-existing
Skip files already present on destination
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Server-side trash / recycle bin: list, restore, or permanently delete.
Description: Server-side trash / recycle bin: list, restore, or permanently delete.
Syntax: aeroftp-cli trash [OPTIONS] <COMMAND>
-h, --help: Print help (see a summary with '-h')Inspect `trash` (offline help)
aeroftp-cli help trashServer-side trash / recycle bin: list, restore, or permanently delete.
A `rm` against a provider with a recycle bin (Nextcloud, and the other trash-capable backends) does NOT free space: the server moves the file to its trash. This is the counterpart that actually reclaims it, and the CLI equivalent of the GUI trash managers.
Usage: aeroftp-cli trash [OPTIONS] <COMMAND>
Commands:
list List the items currently in the server-side trash
empty Permanently delete EVERY item in the trash. This frees the space
restore Restore one item out of the trash, back to its original path
delete Permanently delete a single trash item
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: safe
Summary: Directory tree
Description: Display remote directory tree
Syntax: aeroftp-cli tree --profile NAME /path/ [-d N] [--json]
-d, --depth : Maximum depth to descend (default: 3)-h, --help: Print help (see a summary with '-h')Inspect `tree` (offline help)
aeroftp-cli help treeDisplay remote directory tree
Usage: aeroftp-cli tree [OPTIONS] [URL] [PATH]
Arguments:
[URL]
Server URL or local folder (omit when using --profile)
[PATH]
Remote path (default: where the profile starts; `/` is the root)
Options:
-d, --depth <DEPTH>
Maximum depth to descend
[default: 3]
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Open the interactive terminal UI
Description: Open the interactive terminal UI
Syntax: aeroftp-cli tui [OPTIONS]
-h, --help: Print help (see a summary with '-h')Inspect `tui` (offline help)
aeroftp-cli help tuiOpen the interactive terminal UI
Usage: aeroftp-cli tui [OPTIONS]
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: Manage local AeroFTP user partitions
Description: Manage local AeroFTP user partitions
Syntax: aeroftp-cli users [OPTIONS] [COMMAND]
-i, --interactive: Drop into an interactive prompt after the table (rclone-config-style): Help, List, Tree, refresh, New, Rename, Copy, Add, remove, Fav, re-index, Delete. Requires a TTY; ignored in JSON / non-interactive mode. Per Ehud #311--tui: Open the inline action menu (TUI) directly, skipping the `-i` line prompt (Ehud #311). Offers every verb of the `-i` action bar. Implies interactive and needs a TTY; equivalent to running `-i` and immediately typing `tui`. Quitting the menu exits-h, --help: Print help (see a summary with '-h')Inspect `users` (offline help)
aeroftp-cli help usersManage local AeroFTP user partitions
These users are entirely offline: they are local partitions of the vault on this device and are not tied to any online account or login.
Usage: aeroftp-cli users [OPTIONS] [COMMAND]
Commands:
list List local AeroFTP users
add Add a local AeroFTP user
rename Rename a local AeroFTP user
delete Delete a local AeroFTP user
switch Switch the active local AeroFTP user
sort Reorder users for the GUI dropdown and lock screen
set-passphrase Set, change, or remove a user's account passphrase
lock Lock the current in-memory user session
help Print this message or the help of the given subcommand(s)
Options:
-i, --interactive
Drop into an interactive prompt after the table (rclone-config-style): Help, List, Tree, refresh, New, Rename, Copy, Add, remove, Fav, re-index, Delete. Requires a TTY; ignored in JSON / non-interactive mode. Per Ehud #311
--tui
Open the inline action menu (TUI) directly, skipping the `-i` line prompt (Ehud #311). Offers every verb of the `-i` action bar. Implies interactive and needs a TTY; equivalent to running `-i` and immediately typing `tui`. Quitting the menu exits
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: modify
Summary: AeroVault encrypted container operations (.aerovault), all formats
Description: AeroVault encrypted container operations (.aerovault), all formats
Syntax: aeroftp-cli vault [OPTIONS] <COMMAND>
-h, --help: Print help (see a summary with '-h')Inspect `vault` (offline help)
aeroftp-cli help vaultAeroVault encrypted container operations (.aerovault), all formats
Calls the exact backend the GUI invokes through Tauri commands (shared lib). v3 (default) is the wrapper-stack format (compression→chunk→crypt→Error Correction last); v2 is the AES-256-GCM-SIV format; v1 is the legacy WinZip-AES container. For an existing file the version is auto-detected from its header, so `info`/`add`/`extract` work without `--vault-version`. Error Correction (Reed-Solomon 10+2, v2 fixed-grid payload) is opt-in via `create --error-correction` (non-critical extension: pure v3 readers still open+extract). Real ~20% overhead (proven on incompressible data), per-shard BLAKE3 cksums for localized damage, all-or-nothing repair gate (re-verify every cipher_hash; untouched on failure). Scrub/repair are read-mostly / safe-by-default; use --json for agents. See docs/dev/roadmap/APPENDIX-AEROVAULT-V4-ECC/ and T-AEROVAULT-ECC (#272, Ehud Kirsh).
Usage: aeroftp-cli vault [OPTIONS] <COMMAND>
Commands:
create Create a new empty AeroVault container (v3 default; v1/v2 selectable). Use --error-correction for Reed-Solomon Error Correction (error-correction wrapper, last in 4-wrappers pipeline per #276). Non-critical extension: v3 readers still work. v2 payload (P2-09): fixed grid, ~20% real overhead independent of chunking, per-shard cksums + all-or-nothing repair gate
add Add files to a vault. v3 batches sub-threshold files into shared packs before chunking; v2/v1 add each file as its own entry
add-dir Recursively add a local directory tree into the vault, preserving its structure (mirrors the GUI "add folder"). v2/v3 auto-detected from the file
extract-all Extract the WHOLE vault into a destination directory, preserving the tree (mirrors the GUI "extract all"). v2/v3 auto-detected from the file
mkdir Create an empty directory inside the vault
rm Delete one or more entries from the vault. Use --recursive to remove a directory and everything under it
mv Move or rename an entry inside the vault (a rename is a move within the same directory)
cp Copy an entry inside the vault to a new path
change-password Change a vault's password (re-wraps the keys; the content is not re-encrypted). New password via --new-password or AEROFTP_VAULT_NEW_PASSWORD
compact Compact a v2 vault, reclaiming space left by deleted entries (orphaned data)
scan-dir Preview a LOCAL directory: file count, directory count, total size. No vault is opened (mirrors the GUI add-folder pre-scan)
sync-compare Compare a vault's contents against a local directory and print the differences (vault-only, local-only, conflicts, unchanged). Read-only. v2 vaults only
sync-apply One-shot directional sync between a vault and a local directory, deriving the actions from a fresh comparison. v2 vaults only
recovery-status Report a v3 vault's Error Correction recovery status (embedded extension and/or detached `.aerocorrect` sidecar) from a header-only read. No password needed
info Open a vault and print its info (file / chunk / dedup counts)
extract Extract an entry from a vault to a destination path
scrub Scrub an Error Correction enabled vault for damage (verifies every live block's cipher_hash). Returns {damaged: [...], count: N, checked: M} (M = total chunks walked). Text mode prints "No damage detected (K chunks checked)" or the list. Safe, read-only. Use --json for agents. See also `repair`
repair Repair a damaged Error Correction enabled vault using stored Reed-Solomon parity (v2 grid). Per-shard cksums localize erasures (incl. bad parity shards); RS reconstructs; every reconstructed block is re-verified against its manifest cipher_hash. Persist ONLY if ALL verify (all-or-nothing); else vault byte-for-byte untouched. Returns {repaired, damaged, dry_run}. Honest text: "repaired X of Y", "vault left untouched", etc. --dry-run: preview only. Requires Error Correction (create --error-correction)
export-parity Export a detached Error Correction recovery file (`.aerocorrect`) for an existing vault. The encrypted container is read but never rewritten, so this is how you add parity to a vault created without it, or refresh a detached sidecar after edits (par2 semantics: the recovery file tracks a fixed data set). Default output is `<vault>.aerocorrect`
strip-parity Strip the embedded Error Correction extension from a vault (next seal drops the in-container parity). Refuses unless a detached `.aerocorrect` sidecar already exists, so a vault is never left with zero recovery; pass --force to drop recovery entirely
change-mode Re-pack a vault under a new "mode" (Ehud #2), keeping the same password: a new security level (v2 <-> v3 / cascade), compression profile and/or Error Correction. The source is opened in its own format and recreated in the target format, so this covers both same-format tweaks and full cross-format moves (which fully re-encrypt every file). Mirrors the GUI "Change Mode" action
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
Categories: advanced
Summary: List, download, or restore previous versions of a file
Description: List, download, or restore previous versions of a file
Syntax: aeroftp-cli versions [OPTIONS] <COMMAND>
-h, --help: Print help (see a summary with '-h')Inspect `versions` (offline help)
aeroftp-cli help versionsList, download, or restore previous versions of a file
Only providers that expose versioning answer (e.g. Filen, Dropbox, Google Drive, OneDrive, pCloud, kDrive). Use `versions list` to get a version id, then `versions get` to download it or `versions restore` to make it current.
Usage: aeroftp-cli versions [OPTIONS] <COMMAND>
Commands:
list List previous versions of a file (newest first)
get Download a specific previous version of a file
restore Restore a file to a specific previous version
purge Permanently delete (purge) one version or delete marker of a file
trash List the S3 trash: soft-deleted objects and delete markers under a prefix
empty-trash Empty the S3 trash under a prefix (purge every version and delete marker)
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help (see a summary with '-h')
Output options:
--format <FORMAT>
Output format
[default: text]
[possible values: text, json]
--json
Shorthand for --format json
--machine
Machine / agent mode (implies --json --no-banner --quiet). Guarantees that stdout contains *only* structured result data. All human diagnostics, "Using profile", path notes, connection chatter, "Connected successfully", "Next: ..." etc. go to stderr (or are suppressed). This is the recommended flag for robust agent/LLM/tool-calling use. (also via AEROFTP_MACHINE env var)
--no-banner
Suppress the startup banner (also via AEROFTP_NO_BANNER env var)
--json-fields <JSON_FIELDS>
Restrict JSON output fields (comma-separated, e.g. name,size,modified)
-v, --verbose...
Verbose output (-v debug, -vv trace)
-q, --quiet
Quiet mode (errors only)
--dump <DUMP>
Dump HTTP debug info to stderr (comma-separated: headers,bodies,auth)
Connection options:
--password-stdin
Read password from stdin (pipe: echo "pass" | aeroftp ...)
--key <KEY>
SSH private key path for SFTP
--key-passphrase <KEY_PASSPHRASE>
SSH key passphrase
--bucket <BUCKET>
S3 bucket name
--region <REGION>
S3/Azure region
--container <CONTAINER>
Azure container name
--token <TOKEN>
Bearer/API token (kDrive, Jottacloud, FileLu)
[env: AEROFTP_TOKEN]
--tls <TLS>
FTP TLS mode: none, explicit, implicit, explicit_if_available
--insecure
Skip TLS certificate verification
--trust-host-key
Trust unknown SSH host keys (skip TOFU verification)
--two-factor <TWO_FACTOR>
2FA code (Filen, Internxt)
[env: AEROFTP_2FA]
--no-crypt
Connect to a crypt-overlay profile RAW (skip the bound Crypt overlay), mirroring the GUI's Crypt On/Off toggle. On-wire names and content stay encrypted; no decrypt/encrypt is applied. Ignored for non-crypt profiles
-P, --profile <PROFILE>
Use a saved server profile instead of URL (name or ID)
--user <USER>
Select an AeroFTP local user partition (or set AEROFTP_USER)
[env: AEROFTP_USER=]
--user-passphrase <USER_PASSPHRASE>
Account passphrase for the selected AeroFTP user (prefer env/file over CLI args)
[env: AEROFTP_USER_PASSPHRASE]
--passphrase-file <PASSPHRASE_FILE>
Read the AeroFTP user passphrase from the first line of a file
--master-password <MASTER_PASSWORD>
Master password for encrypted vault (or set AEROFTP_MASTER_PASSWORD)
[env: AEROFTP_MASTER_PASSWORD]
Transfer options:
--limit-rate <LIMIT_RATE>
Speed limit (e.g., "1M", "500K")
--bwlimit <BWLIMIT>
Bandwidth schedule (e.g., "08:00,512k 12:00,10M 18:00,off")
--parallel <PARALLEL>
Number of parallel transfer workers (default: 4, max: 32)
[default: 4]
--partial
Resume interrupted transfers when supported; in-place downloads restart from byte 0
--immutable
Skip a destination the pre-write check finds already there (append-only / immutable mode, best effort). Honoured by put, cp, mv, get and sync: an existing target is reported as skipped (exit 9) and left untouched. The check is a stat before the write, not an atomic condition on the server, so two writers racing for one target can both pass it; see `skip_if_destination_exists`
--no-check-dest
Skip listing destination before transfer (assume dest is empty)
--max-transfer <MAX_TRANSFER>
Abort after transferring this many bytes total (e.g., "10G", "500M")
--max-backlog <MAX_BACKLOG>
Maximum number of queued transfer tasks (default: 10000)
[default: 10000]
--schedule <SCHEDULE>
Multi-file admission schedule for the streaming transfer frontier (DAG-P2-08). `fifo` (default) preserves arrival order; `size` prefers small files for low latency with aging so large files never starve (rclone-style size,mixed)
[default: fifo]
[possible values: fifo, size]
--retries <RETRIES>
Number of retries for failed operations (default: 3, 0 = no retry)
[default: 3]
--retries-sleep <RETRIES_SLEEP>
Delay between retries (e.g., "5s", "1m", "500ms"; default: "1s")
[default: 1s]
--chunk-size <CHUNK_SIZE>
Override upload chunk size (e.g., "64M", "16M"). Min 5M for S3
--buffer-size <BUFFER_SIZE>
Override download buffer size (e.g., "256K", "1M")
--fast-list
Use recursive listing in a single API call (S3 only, faster for large datasets)
--inplace
Write downloads directly to final path (no .aerotmp); --partial keeps interrupted bytes but the next download starts from byte 0
--no-traverse
KE-A4: Skip the full remote listing during sync but still stat every candidate upload to avoid overwriting files that already match by size (rclone `--no-traverse`). Use when the source has a small number of files and the destination has millions (typical S3 bucket with a long-running history). Implies `--direction upload`; combine with `--no-check-dest` for the fully-trust-me variant (skip the stat too)
--tpslimit <TPSLIMIT>
KE-A3: Hard cap on HTTP transactions per second across all providers (rclone `--tpslimit`). Layered ABOVE AIMD: AIMD may shrink the effective parallelism well below this cap on 429s, but never exceeds it. Default `0` = unlimited (AIMD remains the sole throttle). Honored by every backend that goes through the shared `send_with_retry` wrapper (S3, B2, Azure, all OAuth clouds, Filen, WebDAV, ImageKit, Drime, Uploadcare, Cloudinary). SFTP / FTP session protocols are unaffected. Reads default from `AEROFTP_TPSLIMIT`
[env: AEROFTP_TPSLIMIT=]
[default: 0]
--tpslimit-burst <TPSLIMIT_BURST>
KE-A3: Burst capacity for `--tpslimit`. Lets the limiter absorb short spikes without queueing: e.g. `--tpslimit 10 --tpslimit-burst 50` allows up to 50 requests back-to-back before throttling kicks in at 10/s. Default `0` = same as `--tpslimit` (no burst). Reads default from `AEROFTP_TPSLIMIT_BURST`
[env: AEROFTP_TPSLIMIT_BURST=]
[default: 0]
--checkers <CHECKERS>
KE-A2: Concurrency cap for metadata-only operations during sync (rclone `--checkers`). Default `8`, range 1-64. Bounds the remote directory walk of `sync`, `reconcile`, `check`, `cryptcheck`, `df --scan` and `size`: a provider that lists on independent clones (SFTP, S3, WebDAV, B2, the HTTP clouds) lists up to this many directories at once, capped by the provider's own list pool; single-session providers walk one directory at a time whatever the value. The `--no-traverse` stat sweep is still sequential (`StorageProvider::stat` takes `&mut self`) and only reports the value. Distinct from `--transfers`, which caps the data-transfer pool
[default: 8]
Filter options:
--include <INCLUDE>
Include only files matching glob pattern (repeatable)
--exclude-global <EXCLUDE_GLOBAL>
Exclude files matching glob pattern (repeatable)
--include-from <INCLUDE_FROM>
Read include patterns from file (one per line, # comments)
--exclude-from <EXCLUDE_FROM>
Read exclude patterns from file (one per line, # comments)
--files-from <FILES_FROM>
Read file list from file (one path per line). Only listed files are transferred
--files-from-raw <FILES_FROM_RAW>
Like --files-from but don't skip empty lines or strip whitespace
--skip-restricted
Recursive `put`: skip a file or folder whose name contains a character the destination backend forbids and upload the rest, reporting each skipped path, instead of refusing the whole batch up front (the default, which uploads nothing when one name is bad). The run still ends "partial" with exit 4 because not everything requested landed, the way rclone reports a batch with failed items
--max-depth <MAX_DEPTH>
Maximum directory recursion depth (default: unlimited). Applies to ls -R, find, sync, get -r
--min-size <MIN_SIZE>
Minimum file size (e.g., "100k", "1M", "1G")
--max-size <MAX_SIZE>
Maximum file size (e.g., "100k", "1M", "1G")
--min-age <MIN_AGE>
Skip files newer than duration (e.g., "7d", "24h", "2w")
--max-age <MAX_AGE>
Skip files older than duration (e.g., "7d", "24h", "2w")
--default-time <DEFAULT_TIME>
Default mtime when backend returns None (ISO 8601 or "now")
--order-by <ORDER_BY>
KE-A5: Order the transfer queue by the given key (rclone `--order-by`). Applies to multi-file operations: sync, recursive get/put, dedupe. Single-file operations and `ls` are unaffected (`ls` keeps its own `--sort`). Defaults to `none` (FIFO from the input order)
[default: none]
[possible values: none, name, name-desc, size-asc, size-desc, modtime-asc, modtime-desc]
Tuning options:
--multi-thread-streams <MULTI_THREAD_STREAMS>
Number of concurrent Range streams per single-file download (rclone `--multi-thread-streams`). Default 4, applied only to files at or above `--multi-thread-cutoff` (250M), the same shape as rclone's default (4 streams above 256Mi); `1` disables. Range 1-16. Honored by S3/Azure (native), SFTP (N independent connections) and, after a live strict 206 probe, by WebDAV (Basic/anonymous auth; Digest excluded) and Koofr. Any backend or server that does not prove Range honesty falls back to single-stream transparently. Reads default from `AEROFTP_MULTI_THREAD_STREAMS` if set
[env: AEROFTP_MULTI_THREAD_STREAMS=]
[default: 4]
--multi-thread-cutoff <MULTI_THREAD_CUTOFF>
Minimum file size for multi-thread download (rclone `--multi-thread-cutoff`). Default `250M`. Accepts size suffixes `K`/`M`/`G`. Files smaller than this always use the single-stream path, regardless of `--multi-thread-streams`. An explicit value (flag or `AEROFTP_MULTI_THREAD_CUTOFF`) replaces the measured 8 MiB engine floor on batch downloads too; an invalid value aborts download commands with a usage error (exit 5), there is no silent fallback. Providers may enforce their own floor (1 MiB on S3, SFTP, FTP and B2; none on WebDAV and Koofr), applied identically to single-file and batch downloads, and no window is ever smaller than 1 MiB. Reads default from `AEROFTP_MULTI_THREAD_CUTOFF` if set
[env: AEROFTP_MULTI_THREAD_CUTOFF=]
--transfer-engine <TRANSFER_ENGINE>
Single-file transfer engine selection. `auto` (default) follows the per-provider routing table: the shaped-graph DAG engine for network transfers, except plain WebDAV and Nextcloud downloads, which take the provider-direct path. `dag` forces the DAG engine and `legacy` forces the provider-direct path for plain single-file transfers; completed SFTP delta transfers, `--partial` resumes, multi-file batches and sync keep their own paths. Reads default from `AEROFTP_TRANSFER_ENGINE`
[env: AEROFTP_TRANSFER_ENGINE=]
[default: auto]
[possible values: auto, dag, legacy]
--aimd-hint <AIMD_HINT>
KE-D3: Static Retry-After fallback overlay for the AIMD controller. Repeat as `--aimd-hint=provider:secs`, for example `--aimd-hint=drive:30 --aimd-hint=s3:5`
[env: AEROFTP_AIMD_HINT=]
--aimd-disable
KE-D1: Disable the AIMD backpressure controller for the whole run. When set, dispatch concurrency stays pinned at the honest per-class ceiling: a 429 / 503 / timeout response no longer halves the window and a healthy completion no longer regrows it. Intended for dedicated/lab links where the operator has out-of-band guarantees the backend will not throttle and AIMD would only mask a genuine throughput cap diagnostic
[env: AEROFTP_AIMD_DISABLE=]
--aimd-min-window <AIMD_MIN_WINDOW>
KE-D2: Floor for the AIMD `target` after multiplicative decrease. Broadcast to every controlled class (file / chunk / http / api). Use the TOML file (`--aimd-config`) for per-class overrides. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_MIN_WINDOW=]
--aimd-max-window <AIMD_MAX_WINDOW>
KE-D2: Ceiling cap for the AIMD `target`. Broadcast to every controlled class. The value clamps the budget-derived ceiling from below: it can only shrink the honest cap, never raise it (AIMD is decrease-biased). Default: `ceiling` (no extra clamp)
[env: AEROFTP_AIMD_MAX_WINDOW=]
--aimd-step-window <AIMD_STEP_WINDOW>
KE-D2: Additive step applied to the AIMD `target` once per quiet `healthy_window`. Broadcast to every controlled class. A value of `0` is sanitized to `1`. Default: `1`
[env: AEROFTP_AIMD_STEP_WINDOW=]
--aimd-config <PATH>
KE-D2: Path to a TOML file with per-class AIMD window overrides. When unset, AeroFTP looks at `$XDG_CONFIG_HOME/aeroftp/aimd.toml` (or `~/.config/aeroftp/aimd.toml`) and loads it silently if it exists. CLI broadcast flags (`--aimd-min-window`, etc.) take precedence over file values per class.
File schema: [aimd.file] min = 1 max = 8 step = 2 [aimd.chunk] min = 4 max = 32 [aimd.http] ... [aimd.api] ... Every section and every key is optional.
[env: AEROFTP_AIMD_CONFIG=]
Provider options (SFTP):
--sftp-download-preset <SFTP_DOWNLOAD_PRESET>
SFTP single-file download tuning preset. Presets configure independent SSH connections, read-ahead, and the multi-connection cutoff together. `fast` (eight connections) matches the GUI default. The option is ignored for non-SFTP providers
--sftp-readahead <SFTP_READAHEAD>
Explicit SFTP read-ahead window. Overrides `--sftp-download-preset`. Range 2-1024. When neither CLI option is supplied, the legacy `AEROFTP_SFTP_READAHEAD` provider fallback remains active
--sftp-concurrency <SFTP_CONCURRENCY>
KE-A1: SFTP-specific concurrency override for single-file downloads (rclone `--sftp-concurrency`). When set and the remote is SFTP, takes precedence over `--multi-thread-streams` for SFTP only. Default `0` = follow `--multi-thread-streams`. Range 1-16.
IMPORTANT: AeroFTP implements SFTP "concurrency" as N independent SSH connections (PD-SFTP-1 / PD-SFTP-2 pattern), NOT as N pipelined SSH_FXP_READ on a single channel like rclone. The semantics differ: AeroFTP pays N handshakes once per transfer and gets fully independent streams (incl. on servers that ignore SSH window scaling); rclone uses a single channel with deeper read queue depth (lower handshake cost, bounded by server window-scaling honesty). On 1 Gbit links to modern OpenSSH the two converge within ~5%; on links with degraded window scaling AeroFTP's N-connections wins. Reads default from `AEROFTP_SFTP_CONCURRENCY`.
[env: AEROFTP_SFTP_CONCURRENCY=]
[default: 0]
Provider options (S3):
--s3-upload-concurrency <S3_UPLOAD_CONCURRENCY>
KE-B1.1: Override S3 multipart upload parallelism (rclone `--s3-upload-concurrency`). Caps how many parts are uploaded concurrently per file. Default `0` = use the built-in 4-in-flight ceiling. Range 1-64. Memory usage scales with `--s3-upload-concurrency * <part-size>`; raising both at once on small VMs can OOM. Silently ignored when the remote is not S3
[env: AEROFTP_S3_UPLOAD_CONCURRENCY=]
[default: 0]
--s3-no-check-bucket
KE-B1.2: Skip the S3 bucket-existence probe on `connect()` (rclone `--s3-no-check-bucket`). Use with IAM credentials that grant `PutObject` but deny `ListBucket`: the default probe would 403 even though uploads work. Silently ignored when the remote is not S3
[env: AEROFTP_S3_NO_CHECK_BUCKET=]
--s3-disable-checksum
KE-B1.3: Replace the per-payload SHA-256 in S3 SigV4 with `UNSIGNED-PAYLOAD` (rclone `--s3-disable-checksum`). Reduces client CPU on large multipart uploads (~5-15% on a CPU-bound producer) at the cost of SigV4 in-flight tamper protection. Empty-body requests still hash normally (constant cost, some gateways require it). Silently ignored when the remote is not S3
[env: AEROFTP_S3_DISABLE_CHECKSUM=]
--s3-acl <S3_ACL>
KE-B1.4: Canned ACL applied to S3 uploads (rclone `--s3-acl`). Common values: `private`, `public-read`, `public-read-write`, `authenticated-read`, `bucket-owner-read`, `bucket-owner-full-control`. Emitted as `x-amz-acl`. Validation is permissive (vendor extensions accepted; AWS rejects unknown values at the API level). Silently ignored when the remote is not S3, or when the bucket is governed by a bucket policy that forbids ACLs (AWS default since April 2023). Reads default from `AEROFTP_S3_ACL`
[env: AEROFTP_S3_ACL=]
--s3-storage-class <S3_STORAGE_CLASS>
KE-B1.5: Storage class for S3 uploads (rclone `--s3-storage-class`). Common AWS values: `STANDARD`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, `DEEP_ARCHIVE`, `REDUCED_REDUNDANCY`, `EXPRESS_ONEZONE`. Vendor-specific tiers (B2 / Wasabi / R2) accepted. Takes precedence over the profile-level `storage_class` setting. Emitted as `x-amz-storage-class`. Silently ignored when the remote is not S3. Reads default from `AEROFTP_S3_STORAGE_CLASS`
[env: AEROFTP_S3_STORAGE_CLASS=]
Provider options (OneDrive):
--onedrive-no-versions
KE-B3.1: After every successful OneDrive upload, sweep all previous versions of the resulting drive item (rclone `--onedrive-no-versions`). Mitigates the OneDrive Personal "quota inflation from auto-versioning" issue where every modify spawns a new version that counts against the user's storage quota. The sweep is best-effort: failures are logged but never propagated, so the upload itself still reports success. Silently ignored when the remote is not OneDrive
[env: AEROFTP_ONEDRIVE_NO_VERSIONS=]
--onedrive-list-chunk <ONEDRIVE_LIST_CHUNK>
KE-B3.2: Override the Microsoft Graph `$top` paging size for `/children` listings (rclone `--onedrive-list-chunk`). Server default is ~200. Bigger pages reduce round trips on large folders; smaller pages help under throttling. Clamped to `[1, 999]`. `0` = leave server default. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LIST_CHUNK`
[env: AEROFTP_ONEDRIVE_LIST_CHUNK=]
[default: 0]
--onedrive-link-scope <ONEDRIVE_LINK_SCOPE>
KE-B3.3: Override the share-link `scope` on `createLink` calls (rclone `--onedrive-link-scope`). Typical values: `anonymous` (default), `organization`, `users`. Validation is permissive; the Graph API rejects unknown scopes at request time. Silently ignored when the remote is not OneDrive. Reads default from `AEROFTP_ONEDRIVE_LINK_SCOPE`
[env: AEROFTP_ONEDRIVE_LINK_SCOPE=]
Provider options (Azure):
--azure-upload-concurrency <AZURE_UPLOAD_CONCURRENCY>
KE-B4.1: Override the number of `Put Block` requests in flight during Azure block uploads (rclone `--azureblob-upload-concurrency`). Default `0` = serial (1 block at a time, historical behaviour). Range 1-32. Memory usage scales with `concurrency * 4 MiB` per upload; raising on small VMs can OOM. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_UPLOAD_CONCURRENCY=]
[default: 0]
--azure-disable-checksum
KE-B4.2: Reserved for future Content-MD5 metadata gating on Azure uploads (rclone `--azureblob-disable-checksum`). AeroFTP does not currently send `x-ms-blob-content-md5` on uploads, so this flag is structurally wired but has no observable effect today. It will gate the future MD5-on-upload code path once that lands. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_DISABLE_CHECKSUM=]
--azure-access-tier <AZURE_ACCESS_TIER>
KE-B4.3: Apply this Azure access tier to every successful upload as a post-PUT `Set Blob Tier` call (rclone `--azureblob-access-tier`). Values: `Hot`, `Cool`, `Cold`, `Archive`. Tier failures are logged at WARN but do not invalidate the upload itself. Vendor / future tiers pass through; Azure rejects unknown values at the API level. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ACCESS_TIER=]
--azure-archive-tier-delete
KE-B4.4: Before overwriting an existing blob, check if it is in Archive access tier; if so, DELETE the blob before the new PUT (rclone `--azureblob-archive-tier-delete`). Without this flag, PUT against an Archive blob fails with `BlobArchived`. Adds one pre-upload HEAD round trip per file. Silently ignored when the remote is not Azure Blob
[env: AEROFTP_AZURE_ARCHIVE_TIER_DELETE=]
Provider options (Google Drive):
--drive-cross-account-copy
KE-B2.3: Append `supportsAllDrives=true` to Google Drive `files.copy` so the server-side copy succeeds across Shared Drives and between My Drive and a Shared Drive. Without this flag, copies that cross drive boundaries can fail with 404 / 403 even when the OAuth scopes are sufficient. Aligned with rclone's `--drive-server-side-across-configs`. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_CROSS_ACCOUNT_COPY=]
--drive-pacer-burst <DRIVE_PACER_BURST>
KE-B2.1: Allow this many Google Drive API dispatches inside one AIMD pacing window before `--drive-pacer-min-sleep` is applied. `0` preserves the controller default. Ignored for non-Drive providers
[env: AEROFTP_DRIVE_PACER_BURST=]
[default: 0]
--drive-pacer-min-sleep <DRIVE_PACER_MIN_SLEEP>
KE-B2.2: Minimum delay between Google Drive AIMD API pacing windows. Accepts `500ms`, `2s`, `1m`, `1h`, or `0` to disable the overlay and preserve the controller default
[env: AEROFTP_DRIVE_PACER_MIN_SLEEP=]
--drive-acknowledge-abuse
KE-B2.4: Append `acknowledgeAbuse=true` to Google Drive binary download URLs (`alt=media`) so files flagged by Google as abusive still download instead of failing with `cannotDownloadAbusiveFile` (rclone `--drive-acknowledge-abuse`). Workspace export endpoints are not affected. By enabling this flag the user acknowledges the risk associated with downloading content Google's classifier flagged. Silently ignored when the remote is not Google Drive
[env: AEROFTP_DRIVE_ACKNOWLEDGE_ABUSE=]
Safety options:
--strict
Refuse safety-relaxing flags (also via AEROFTP_STRICT=1).
Hardens unattended / agent automation: any flag that disables a safety check (TLS or SSH host-key verification, the abuse / cross-account / archive-tier acknowledgements, AIMD backpressure) or auto-approves write/destructive agent tools becomes a hard error (exit 5) instead of silently relaxing safety. A generated command that smuggles in `--insecure` or `--auto-approve all` then fails loudly rather than proceeding.
To install the app on your iPhone/iPad: