dive pack
dive pack add
Install a pack from git as a plain copy in the project, global or given Dive directory
packs.lock records the commit each release tag pointed at when it was installed. A published release must never move: when the repository's copy of a recorded tag now points elsewhere, or a clone checks out a different commit than git ls-remote reported, the install is refused and nothing changes. Branch-tracking packs are exempt.
Arguments
A bare name (the <name> directory of github.com/loon-rocks/packs) or a git URL; a name already in [packs] installs that entry
Options
The pack's directory inside the repository, whose releases are the tags <DIR>/vX.Y.Z; default: the repository root (a bare name's own directory)
Format: DIR.
Install under this name instead of the manifest's
Format: NAME.
A major line (v2), an exact release (v2.1.0, pinned) or a branch; default: the newest release
Format: REF.
Target the global layer (~/.config/dive/) instead of the project's ./.dive/
Target this Dive directory, laid out like .dive/ (config.toml, packs/, packs.lock)
Format: PATH.
Print a JSON envelope instead of text
Global options
Increase log verbosity (-v info, -vv debug, -vvv trace)
Act as this [identities] entry: runs get a run token minted for its tenant and user, which http tools send to the app
Format: IDENTITY.
dive pack add [OPTIONS] <NAME|URL>