Skip to main content

devbox add

Add a new package to your devbox

devbox add <pkg>... [flags]

Examples

# Add the latest version of the `ripgrep` package
devbox add ripgrep

# Install glibcLocales only on x86_64-linux and aarch64-linux
devbox add glibcLocales --platform x86_64-linux,aarch64-linux

# Exclude busybox from installation on macOS
devbox add busybox --exclude-platform aarch64-darwin,x86_64-darwin

# Install non-default outputs for a package, such as the promtool CLI
devbox add prometheus --outputs=out,cli

Options

OptionDescription
--allow-insecureallows Devbox to install a package that is marked insecure by Nix
-c, --config stringpath to directory containing a devbox.json config file
--disable-plugindisable the build plugin for a package
--environment stringJetify Secrets environment to use, when supported (e.g.secrets support dev, prod, preview.) (default "dev")
-e, --exclude-platform stringsexclude packages from a specific platform.
-h, --helphelp for add
-o, --outputs stringsspecify the outputs to install for the nix package
-p, --platform stringsinstall packages only on specific platforms.
--patchAllow Devbox to patch your packages to fix issues with missing native libraries (auto, always, never) (default "auto")
-q, --quietquiet mode: Suppresses logs.

Valid Platforms include:

  • aarch64-darwin
  • aarch64-linux
  • x86_64-darwin
  • x86_64-linux

The platforms below are also supported, but will build packages from source

  • i686-linux
  • armv7l-linux

SEE ALSO

  • devbox - Instant, easy, predictable shells and containers