A simple command-line interface for dowdep built using oclif
.
Outputs are in a machine-readable format and can be reused by other applications.
Prerequisites: Build the dowdep package.
$ yarn install
$ npm link
# Install autocompletion (optional)
$ dowdep-cli autocomplete
Required environment variables:
GITHUB_OAUTH_TOKEN
: The token that is used to retrieve additional information about downstream dependencies from GitHub. You can generate a new token in your developer settings.SOURCEGRAPH_TOKEN
: The token that is used to search dependencies from Sourcegraph. You can generate a new token in your account settings.NPM_CACHE
(optional): Indicates the path to the downloaded dependencies. Defaults tocache/
.
Find downstream dependencies of a package:
dowdep-cli list <your-package> [--limit=<number>] [--strategies=npm|sourcegraph|all]
Download downstream dependencies:
NPM_CACHE=<path/to/cache> dowdep-cli download <your-package> [--limit=<number>] [--strategies=npm|sourcegraph|all]
Search downloaded dependencies for references to package:
NPM_CACHE=<path/to/cache> dowdep-cli search <your-package> [--limit=<number>]
Show complete help:
dowdep-cli help [<command>]