Install dependencies listed in the deplink.lock or in the deplink.json if lock file is missing or outdated.
deplink install [options] [<package>]...
Below table demonstrates whether specified packages will be added to the
dev-dependencies section in the
deplink.json file (the "Section" column) and whether installation will also download and build dependencies listed in the
dev-dependencies section (the "Install dev" column).
Additionally while specifying the
package argument you can include custom version constraint and linking type constraint. If version is omitted then Deplink will force project to use version compatible to the newly installed one. Omitting the linking type will result in using a linking type preferred by the library.
Package argument format:
deplink install hello/world:^1.3
deplink install hello/world::static
deplink install hello/world:2.*:dynamic
package- names of the packages to add before installation.
--dev- add optional packages to "dev-dependencies" section,
--no-dev- skip installation packages from the "dev-dependencies" section,
--no-progress- outputs only steps without showing dynamic progress,
--working-dir=WORKING-DIR- use the given directory as working directory.