dub-add - Man Page

Adds dependencies to the package file.

Synopsis

dub add <package>[@<version-spec>] [<packages...>] Options...

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.

Options

Common Options

See dub(1)

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

Author

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

Online Documentation

http://code.dlang.org/docs/commandline

See Also

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

Referenced By

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

2024-01-24 The D Language Foundation