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-add - Adds dependencies to the package file.

Author

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

Description

       Adds <packages> as dependencies.

       Running  "dub  add  <package>"  is  the  same  as  adding  <package>  to  the  "dependencies"  section in
       dub.json/dub.sdl.

       If no version is specified for one of the packages, dub will query the registry for the latest version.

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-add - Adds dependencies to the package file.

Online Documentation

Options

COMMONOPTIONS
       See dub(1)

See Also

dub(1), dub-convert(1), dub-fetch(1), dub-init(1)

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

Synopsis

dubadd <package>[@<version-spec>] [<packages...>] OPTIONS...

See Also