cli.sgit.ai / Command reference / sgit fetch

sgit fetch

Fetch file content on demand (sparse clone).

Generated from sgit help all --format json, sgit-ai v0.23.0. No subcommands. To change this page, change the command's register() in the CLI and regenerate.

sgit fetch [options] [path] [directory]
ArgumentWhat it is
pathoptionalFile or directory path to fetch (default: all)
directoryoptionalVault directory (default: .)
OptionWhat it does
--allFetch all unfetched files (convert sparse clone to full)
--base-urlAPI base URL (overrides --remote, global --base-url, and saved config)
--no-verify-tlsSkip TLS certificate verification (staging / self-signed only)
--remoteUse the named remote (URL + tls_verify from saved config); overrides the default remote for this command
--tokenSG/Send access token (overrides global --token and saved config)
--transportHow to reach the vault: auto (default — a folder is local, an http(s) host is api unless its batch endpoint is absent), api (live SG/API), static (any GET host, read-only), local (a folder, read-only) One of: api, auto, local, static.
--unshallowShallow clone: fetch the history behind the boundary commit(s)
--verify-tlsVerify TLS certificates (default)

This page as markdown · its source, admin/content/reference/sgit-cli-reference.json