.TH DUB-ADD 1 "2024-04-15" "The D Language Foundation" "The D Language Foundation" .SH NAME dub-add \- Adds dependencies to the package file. .SH SYNOPSIS \fBdub add \fR<\fIpackage\fR>[@<\fIversion-spec\fR>] [<\fIpackages...\fR>] \fIOPTIONS\&.\&.\&.\fR .SH DESCRIPTION Adds as dependencies. Running "dub add " is the same as adding 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. .SH OPTIONS .SS COMMON OPTIONS See \fBdub\fR(1) .SH EXIT STATUS .TP .BR 0 DUB succeeded .TP .BR 1 usage errors, unknown command line flags .TP .BR 2 package not found, package failed to load, miscellaneous error .SH FILES \fIdub\&.sdl\fR, \fIdub\&.json\fR .SH AUTHOR Copyright (c) 1999-2024 by The D Language Foundation .SH ONLINE DOCUMENTATION .URhttp://code.dlang.org/docs/commandline http://code.dlang.org/docs/commandline .UE .SH SEE ALSO \fBdub\fR(1), \fBdub-convert\fR(1), \fBdub-fetch\fR(1), \fBdub-init\fR(1)