cli.sgit.ai / Command reference / sgit pack

sgit pack

Pack vaults: objects as zips on the host (import, export, compact, ls, verify, stats).

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

sgit pack [options]
OptionWhat it does
--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.
--verify-tlsVerify TLS certificates (default)

Subcommands

sgit pack compact

One snapshot of the head; absorbed, superseded and orphan packs move to archive/

sgit pack compact [options] [directory]
ArgumentWhat it is
directoryoptionalPack-vault clone (default: .)
OptionWhat it does
--base-urlAPI base URL (overrides --remote, global --base-url, and saved config)
--dry-runShow the plan only
--json
--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.
--verify-tlsVerify TLS certificates (default)

sgit pack export

Rewrite a pack-vault clone into a NEW normal vault (new key; source untouched)

sgit pack export [options] <source> <target>
ArgumentWhat it is
sourcerequiredClone of the pack vault
targetrequiredDirectory for the new normal vault
OptionWhat it does
--base-urlAPI base URL (overrides --remote, global --base-url, and saved config)
--jsonPrint the rewrite stats as JSON
--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.
--vault-keyKey for the new vault (generated if omitted)
--verify-tlsVerify TLS certificates (default)

sgit pack import

Rewrite a full clone of a normal vault into a NEW pack vault (new key; source untouched)

sgit pack import [options] <source> <target>
ArgumentWhat it is
sourcerequiredFull clone of the normal vault
targetrequiredDirectory for the new pack vault (must not exist as a vault)
OptionWhat it does
--base-urlAPI base URL (overrides --remote, global --base-url, and saved config)
--jsonPrint the rewrite stats as JSON
--no-deflatePacks without blob compression
--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.
--vault-keyKey for the new vault (generated if omitted)
--verify-tlsVerify TLS certificates (default)

sgit pack ls

List the packs on the host

sgit pack ls [options] [directory]
ArgumentWhat it is
directoryoptional
OptionWhat it does
--base-urlAPI base URL (overrides --remote, global --base-url, and saved config)
--json
--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.
--verify-tlsVerify TLS certificates (default)

sgit pack stats

Packs and bytes on the host; local compression ratio

sgit pack stats [options] [directory]
ArgumentWhat it is
directoryoptional
OptionWhat it does
--base-urlAPI base URL (overrides --remote, global --base-url, and saved config)
--json
--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.
--verify-tlsVerify TLS certificates (default)

sgit pack verify

Check every pack member against its content address

sgit pack verify [options] [directory]
ArgumentWhat it is
directoryoptional
OptionWhat it does
--base-urlAPI base URL (overrides --remote, global --base-url, and saved config)
--json
--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.
--verify-tlsVerify TLS certificates (default)

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