denvig deps
The deps command helps you manage project dependencies detected by plugins
across different languages and package managers.
Each dependency belongs to an ecosystem, such as npm, rubygems, pypi, or
actions. The actions ecosystem covers GitHub Actions used in your workflows,
with versions checked against each action’s GitHub releases.
denvig deps <subcommand>Global options
Section titled “Global options”| Option | Description |
|---|---|
--project |
The project slug to run against. Defaults to the current directory. |
--json |
Output in JSON format. |
Subcommands
Section titled “Subcommands”List all dependencies detected by plugins:
denvig deps list| Option | Description |
|---|---|
--depth <n> |
Show subdependencies up to n levels deep. Defaults to 0 (direct dependencies only). |
--ecosystem <name> |
Only list dependencies from one ecosystem, eg. npm, rubygems, pypi, or actions. |
--format <format> |
Output format: table (default), json, or dependabot. |
# Direct dependencies plus one level of subdependenciesdenvig deps list --depth 1
# Only GitHub Actions used in the project's workflowsdenvig deps list --ecosystem actionsDependabot snapshots
Section titled “Dependabot snapshots”--format dependabot outputs a GitHub
dependency snapshot
so CI can submit the resolved dependencies, including transitive ones, for
Dependabot alerts:
denvig deps list --format dependabot > snapshot.jsonThe commit and ref are read from the GitHub Actions or CircleCI environment,
falling back to the local git checkout. On pull requests the PR head commit is
used. Run it from a git checkout with a branch checked out. Each project
directory and --ecosystem filter gets its own snapshot correlator, so separate
submissions don’t replace each other.
See the Dependabot guide for complete GitHub Actions and CircleCI setups.
For example, in a GitHub Actions workflow:
permissions: contents: write
steps: - uses: actions/checkout@v5 # ...install denvig... - run: denvig deps list --format dependabot > snapshot.json - run: | gh api repos/${{ github.repository }}/dependency-graph/snapshots \ --method POST --input snapshot.json env: GH_TOKEN: ${{ github.token }}outdated
Section titled “outdated”Show outdated dependencies across all detected package managers:
denvig deps outdatedIt’s also possible to check semver-compatible updates only:
denvig deps outdated --semver patchdenvig deps outdated --semver minorDependencies are cached for 1 hour by default to speed up subsequent commands.
Use --no-cache to bypass the cache and fetch fresh data:
denvig deps outdated --no-cache| Option | Description |
|---|---|
--semver <level> |
Only show updates within a semver level: patch, minor, or major. |
--ecosystem <name> |
Only check one ecosystem, eg. npm, rubygems, pypi, or actions. |
--release-latency <duration> |
Only show updates released longer ago than this duration, eg. 3h, 7d, or 2w. Use auto to read pnpm’s minimumReleaseAge with a 24h fallback, or 0 to disable. |
--no-cache |
Skip the on-disk cache and fetch fresh data from the registry. |
# Skip anything released in the last weekdenvig deps outdated --release-latency 7d
# Check GitHub Actions onlydenvig deps outdated --ecosystem actionsdenvig outdated is a shorthand for denvig deps outdated.
Show why a specific dependency is installed:
denvig deps why <package>dedupe
Section titled “dedupe”Deduplicate lockfile dependencies by combining compatible versions into a single resolved version where possible:
denvig deps dedupeBy default this only reports what would change. Pass --apply to write the
changes to the lockfile and run an install:
denvig deps dedupe --apply| Option | Description |
|---|---|
--apply |
Apply the deduplication to the lockfile and run install. |
Debugging
Section titled “Debugging”Set DENVIG_DEBUG=deps to record a trace of dependency checks, network requests
and git commands. The trace is written to
~/.denvig/logs/debug/traces/ and can be opened in https://ui.perfetto.dev to
see where time is spent:
DENVIG_DEBUG=deps denvig deps outdated