| title | Dependency Commands Reference | ||
|---|---|---|---|
| description | Complete reference for registering third-party package and service dependencies. | ||
| sidebar |
|
Register third-party dependencies your project relies on, such as packages (better-sqlite3) and external services (for example Stripe API).
Component-to-component coupling is tracked with jumbo relation add --type depends_on, not dependency commands.
Add a third-party dependency.
> jumbo dependency add [options]| Option | Description |
|---|---|
--name <name> |
Dependency display name |
--ecosystem <ecosystem> |
Ecosystem or provider, e.g. npm, service |
--package-name <packageName> |
Package/service identifier |
--version-constraint <constraint> |
Optional version constraint, e.g. ^4.18.0 |
--endpoint <text> |
Optional endpoint/integration point |
--contract <text> |
Optional interface/contract notes |
--consumer-id <id> |
Legacy compatibility flag (deprecated, removed in v3.0.0) |
--provider-id <id> |
Legacy compatibility flag (deprecated, removed in v3.0.0) |
# Register better-sqlite3 (database package)
> jumbo dependency add --name better-sqlite3 --ecosystem npm --package-name better-sqlite3 --version-constraint ^9.4.3
# Register a non-database external dependency (Stripe API)
> jumbo dependency add --name StripeAPI --ecosystem service --package-name stripe-api --version-constraint 2023-10-16 --endpoint https://api.stripe.com --contract "Payment API v1"
# Legacy compatibility path (deprecated, removed in v3.0.0)
> jumbo dependency add --consumer-id comp_abc --provider-id comp_def --endpoint "IUserRepository" --contract "UserRepository interface"Legacy flags emit a deprecation warning and are mapped to a component relation (depends_on). For migration details, see Upgrading to v2.
List third-party dependencies.
> jumbo dependencies list [options]| Option | Description |
|---|---|
--name <name> |
Filter by dependency display name |
--ecosystem <ecosystem> |
Filter by ecosystem/provider |
--package-name <packageName> |
Filter by package/service identifier |
--consumer <componentId> |
Filter by consumer component ID |
--provider <componentId> |
Filter by provider component ID |
> jumbo dependencies list
> jumbo dependencies list --ecosystem npm
> jumbo dependencies list --package-name better-sqlite3
> jumbo dependencies list --consumer comp_abc123 --provider comp_def456Search third-party dependencies by identity fields, status, legacy links, or free text.
> jumbo dependencies search [options]| Option | Description |
|---|---|
--name <name> |
Filter by dependency display name; supports substring matching and * wildcards |
--ecosystem <ecosystem> |
Filter by ecosystem/provider; supports substring matching and * wildcards |
--package-name <packageName> |
Filter by package/service identifier; supports substring matching and * wildcards |
--version <version> |
Filter by version constraint; supports substring matching and * wildcards |
--status <status> |
Filter by status: active, deprecated, removed |
--consumer <componentId> |
Legacy filter by consumer component ID; supports substring matching and * wildcards |
--provider <componentId> |
Legacy filter by provider component ID; supports substring matching and * wildcards |
-q, --query <query> |
Free-text search across name, ecosystem, package name, version constraint, contract, and endpoint |
-o, --output <output> |
Output detail level: default or compact |
> jumbo dependencies search --ecosystem npm --query sqlite
> jumbo dependencies search --package-name "@types/*" --output compact
> jumbo dependencies search --status deprecated --format jsonUpdate an existing third-party dependency.
> jumbo dependency update --id <id> [options]| Option | Description |
|---|---|
-i, --id <id> |
ID of the dependency to update (required) |
--endpoint <text> |
Updated endpoint or connection string |
--contract <text> |
Updated contract or interface definition |
-s, --status <status> |
Updated status: active, deprecated, removed |
> jumbo dependency update --id dep_abc123 --endpoint "/api/v2/users"
> jumbo dependency update --id dep_abc123 --status deprecatedRemove a third-party dependency.
> jumbo dependency remove --id <id> [--reason <text>]| Option | Description |
|---|---|
-i, --id <id> |
ID of the dependency to remove (required) |
-r, --reason <text> |
Reason for removing the dependency |
> jumbo dependency remove --id dep_abc123
> jumbo dependency remove --id dep_abc123 --reason "Services merged"--consumer-id/--provider-idare compatibility flags only.- Planned removal window: these legacy flags are supported during
v2.xand removed inv3.0.0. - Use
jumbo evolve --yesto migrate legacy coupling-style dependency records into relations during installation updates. - For component coupling, use relation commands:
> jumbo relation add --from-type component --from-id comp_abc --to-type component --to-id comp_def --type depends_on --description "comp_abc depends on comp_def"