| description | Audit project dependencies for licenses, production vs development split, and detailed package analysis using the Syncable CLI sync-ctl tool |
|---|
Analyze project dependencies in detail: list all packages, check license types, separate production from development dependencies, and optionally flag vulnerabilities inline. Use this for license compliance and dependency inventory.
sync-ctlbinary installed and on PATH- Agent has access to the project directory
sync-ctl dependencies <PATH> --licenses --agentsync-ctl dependencies <PATH> --licenses --prod-only --agent| Flag | Purpose |
|---|---|
--agent |
Compressed output for agent consumption (always use) |
--licenses |
Include license information for each dependency |
--vulnerabilities |
Quick inline vulnerability check (for thorough CVE scanning, use the standalone sync-ctl vulnerabilities command instead) |
--prod-only |
Show only production dependencies |
--dev-only |
Show only development dependencies |
Priority for reporting to user:
- License concerns (copyleft in commercial projects, unknown licenses)
- Dependency counts (prod vs dev)
- Specific packages only if asked
When to use --vulnerabilities vs standalone vulnerabilities command:
- Use
--vulnerabilitieshere for a quick inline check alongside license info - Use
sync-ctl vulnerabilitiesfor a dedicated, thorough CVE scan
When you use --agent, the output is a compressed summary with counts, license distribution, and source breakdown. Individual package details are NOT in the compressed output — use sync-ctl retrieve to get them.
What's in the compressed output:
total— total dependency countproduction/development— prod vs dev splitby_source— counts per ecosystem (npm, crates.io, pypi, etc.)by_license— license distributionfull_data_ref— reference ID for the full data
To get individual package details, use retrieve:
# Get the full dependency list
sync-ctl retrieve <ref_id>
# Search for a specific package
sync-ctl retrieve <ref_id> --query "file:package.json"Results are paginated (default 20). Use --limit N --offset M for more.
| Error | Cause | Action |
|---|---|---|
No dependencies found |
No package manager files | Verify project path, run sync-ctl analyze to check for supported package managers |
| Incomplete results | Some package managers not fully parsed | Note which ecosystems were scanned and which may be missing |
Full audit with licenses:
sync-ctl dependencies . --licenses --agentProduction-only for license compliance:
sync-ctl dependencies . --licenses --prod-only --agentQuick vulnerability check alongside deps:
sync-ctl dependencies . --licenses --vulnerabilities --agent