Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.45 KB

File metadata and controls

51 lines (35 loc) · 1.45 KB

dowdep-cli

A simple command-line interface for dowdep built using oclif. Outputs are in a machine-readable format and can be reused by other applications.

Installation

Prerequisites: Build the dowdep package.

$ yarn install
$ npm link

# Install autocompletion (optional)
$ dowdep-cli autocomplete

Usage

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 to cache/.

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>]