A CLI for generating dependabot config from package.json
# Generate .github/dependabot.yml from root level package.json
$ npx @elbaph/generate-dependabot-config-from-package-json
# Generate .github/dependabot.yml from specific package.json
$ npx @elbaph/generate-dependabot-config-from-package-json ./package.json
# Generate .github/dependabot.yml from many package.json files
$ npx @elbaph/generate-dependabot-config-from-package-json ./package.json ./mock-app/package.json
The CLI supports many ways to customize the generated dependabot.yml config
Show help information and exit.
In the CLI: --help, -h
$ npx @elbaph/generate-dependabot-config-from-package-json --help
Print the current version of the CLI and exit.
In the CLI: --version, -v
$ npx @elbaph/generate-dependabot-config-from-package-json --help
Specify your own labels separated by a comma(,) for all pull requests raised by dependabot (default: "dependencies").
In the CLI: --labels
$ npx @elbaph/generate-dependabot-config-from-package-json --labels <label1>
# OR
$ npx @elbaph/generate-dependabot-config-from-package-json --labels <label1,label2>
The output path of the generated dependabot.yml config (default: ".github").
In the CLI: --output, -o
$ npx @elbaph/generate-dependabot-config-from-package-json --output <path/to/dependabot/config/folder>
Disallow dependabot to raise PRs for major semver updates for all dependencies.
In the CLI: --no-major-updates
$ npx @elbaph/generate-dependabot-config-from-package-json --no-major-updates
Disallow dependabot to raise PRs for minor semver updates for all dependencies.
In the CLI: --no-minor-updates
$ npx @elbaph/generate-dependabot-config-from-package-json --no-minor-updates
Disallow dependabot to raise PRs for patch semver updates for all dependencies.
In the CLI: --no-patch-updates
$ npx @elbaph/generate-dependabot-config-from-package-json --no-patch-updates
Whether or not to separate security fixes into their own 2 groups (default: true)
In the CLI: --separate-security-fixes
$ npx @elbaph/generate-dependabot-config-from-package-json --separate-security-fixes
Define whether to look for version updates: daily, weekly, or monthly (choices: "daily", "weekly", "monthly").
In the CLI: --schedule-interval
$ npx @elbaph/generate-dependabot-config-from-package-json --schedule-interval <interval>
Define how dependabot should edit manifest files (choices: "auto", "increase", "increase-if-necessary", "lockfile-only", "widen").
In the CLI: --versioning-strategy
$ npx @elbaph/generate-dependabot-config-from-package-json --versioning-strategy <strategy>