Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

stacy install

Install packages from lockfile or SSC/GitHub

Synopsis

stacy install [OPTIONS]

Description

Installs the packages stacy.lock pins, at the versions and checksums it records.

install reads the lockfile; it never writes it. If a source no longer serves the pinned version, or serves different bytes under it, the install fails and stacy.lock is left untouched. Use stacy update to move a pin.

SSC serves only the current revision of a package, so a pinned version that has left the package cache cannot be downloaded again. A cold-cache install of a superseded pin fails rather than installing a different version under it.

The version pin is checked where the package names its own version. A .pkg manifest with no Distribution-Date line names none, so for those packages the checksum alone decides whether the pin is satisfied.

Options

OptionDescription
--frozenFail if lockfile doesn’t match stacy.toml
--no-verifySkip checksum verification (a version the source names is still checked)
--withInclude dependency groups (comma-separated: dev, test)

Examples

Install from lockfile

Install all packages at locked versions

stacy install

Install specific package

stacy install estout

Exit Codes

CodeMeaning
0Success
1A package failed to install or failed checksum verification

See Exit Codes Reference for details.

See Also