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 add

Add packages to project

Synopsis

stacy add <PACKAGES> [OPTIONS]

Description

Adds packages to your project’s stacy.toml and installs them. Supports SSC (default) and GitHub sources. Packages are recorded with versions for reproducible installs via stacy install.

Arguments

ArgumentDescription
<PACKAGES>Package names to add (required)

Options

OptionDescription
--devAdd as development dependency
--sourcePackage source: ssc or github:user/repo[@ref]
--testAdd as test dependency

Examples

Add from SSC

stacy add estout
stacy add estout reghdfe

Add from GitHub

stacy add --source github:sergiocorreia/ftools ftools

Add as dev dependency

stacy add --dev assert

Exit Codes

CodeMeaning
0Success
1All packages failed to add

See Exit Codes Reference for details.

See Also