Skip to main content

devbox global add

Add a new global package.

devbox global add <pkg>... [flags]

Examples

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

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

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

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
-e, --exclude-platform stringsexclude packages from a specific platform.
-h, --helphelp for add
-q, --quietquiet mode: suppresses logs.
-p, --platform stringsinstall packages only on specific platforms. Defaults to the current platform

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