Skip to content
DocsChangelogv0.7.8

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.

Terminal window
denvig deps <subcommand>
Option Description
--project The project slug to run against. Defaults to the current directory.
--json Output in JSON format.

List all dependencies detected by plugins:

Terminal window
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.
Terminal window
# Direct dependencies plus one level of subdependencies
denvig deps list --depth 1
# Only GitHub Actions used in the project's workflows
denvig deps list --ecosystem actions

--format dependabot outputs a GitHub dependency snapshot so CI can submit the resolved dependencies, including transitive ones, for Dependabot alerts:

Terminal window
denvig deps list --format dependabot > snapshot.json

The 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 }}

Show outdated dependencies across all detected package managers:

Terminal window
denvig deps outdated

It’s also possible to check semver-compatible updates only:

Terminal window
denvig deps outdated --semver patch
denvig deps outdated --semver minor

Dependencies are cached for 1 hour by default to speed up subsequent commands. Use --no-cache to bypass the cache and fetch fresh data:

Terminal window
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.
Terminal window
# Skip anything released in the last week
denvig deps outdated --release-latency 7d
# Check GitHub Actions only
denvig deps outdated --ecosystem actions

denvig outdated is a shorthand for denvig deps outdated.

Show why a specific dependency is installed:

Terminal window
denvig deps why <package>

Deduplicate lockfile dependencies by combining compatible versions into a single resolved version where possible:

Terminal window
denvig deps dedupe

By default this only reports what would change. Pass --apply to write the changes to the lockfile and run an install:

Terminal window
denvig deps dedupe --apply
Option Description
--apply Apply the deduplication to the lockfile and run install.

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:

Terminal window
DENVIG_DEBUG=deps denvig deps outdated