logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dub-upgrade - Forces an upgrade of the dependencies

Author

       Copyright (c) 1999-2025 by The D Language Foundation

Description

       Upgrades all dependencies of the package by querying the package registry(ies) for new versions.

       This will update the versions stored in the selections file (dub.selections.json) accordingly.

       If  one  or  more  package  names  are specified, only those dependencies will be upgraded. Otherwise all
       direct and indirect dependencies of the root package will get upgraded.

Exit Status

0      DUB succeeded

       1      usage errors, unknown command line flags

       2      package not found, package failed to load, miscellaneous error

Files

dub.sdl, dub.json

Name

       dub-upgrade - Forces an upgrade of the dependencies

Online Documentation

Options

--prerelease
           Uses the latest pre-release version, even if release versions are available

       -s, --sub-packages
           Also upgrades dependencies of all directory based sub packages

       --verify
           Updates the project and performs a build. If successful, rewrites the selected versions file  <to  be
           implemented>.

       --dry-run
           Only print what would be upgraded, but don't actually upgrade anything.

       --missing-only
           Performs  an  upgrade only for dependencies that don't yet have a version selected. This is also done
           automatically before each build.

       --force-remove
           Deprecated option that does nothing.

   COMMONOPTIONS
       See dub(1)

See Also

dub(1)

The D Language Foundation                          2025-01-22                                     DUB-UPGRADE(1)

Synopsis

dubupgrade [<packages...>] OPTIONS...

See Also