Skip to main content

synapsync doctor

Diagnose and fix issues with your SynapSync project.

Usage

synapsync doctor [options]

Options

OptionDescription
--fixAuto-fix detected issues
--check <checks...>Run specific checks only
--verboseShow detailed output
--jsonJSON output

Checks Performed

CheckDescriptionAuto-fixable
node-versionNode.js >= 20.0.0No
synapsync-dir.synapsync/ existsYes
config-validConfig file is valid YAMLNo
manifest-existsmanifest.json existsYes
manifest-consistencyManifest matches filesystemYes
providers-configuredAt least one provider enabledNo
symlinks-validProvider symlinks point to valid targetsYes
registry-connectivityCan reach the registryNo

Examples

Run All Checks

synapsync doctor
Running diagnostics...

✓ node-version Node.js v20.10.0
✓ synapsync-dir .synapsync/ exists
✓ config-valid Config is valid
✓ manifest-exists manifest.json exists
⚠ manifest-consistency 2 orphaned entries
✓ providers-configured 1 provider enabled
✗ symlinks-valid 3 broken symlinks
✓ registry-connectivity Registry reachable

Found 2 issues (1 fixable)

Run 'synapsync doctor --fix' to auto-fix

Auto-fix Issues

synapsync doctor --fix
Running diagnostics with auto-fix...

✓ node-version Node.js v20.10.0
✓ synapsync-dir .synapsync/ exists
✓ config-valid Config is valid
✓ manifest-exists manifest.json exists
⚠ manifest-consistency Fixed: removed 2 orphaned entries
✓ providers-configured 1 provider enabled
⚠ symlinks-valid Fixed: removed 3 broken symlinks
✓ registry-connectivity Registry reachable

Fixed 2 issues

Run Specific Checks

synapsync doctor --check symlinks-valid manifest-consistency

Verbose Output

synapsync doctor --verbose

Shows detailed information about each check.

JSON Output

synapsync doctor --json
{
"checks": [
{
"name": "node-version",
"status": "pass",
"message": "Node.js v20.10.0"
},
{
"name": "symlinks-valid",
"status": "fail",
"message": "3 broken symlinks",
"fixable": true
}
],
"summary": {
"passed": 6,
"failed": 2,
"fixable": 1
}
}

Common Issues

Caused by manually deleting cognitives from .synapsync/.

Fix: synapsync doctor --fix or synapsync clean --orphans

Manifest Inconsistency

Manifest doesn't match filesystem contents.

Fix: synapsync doctor --fix or synapsync sync

Missing .synapsync Directory

Project not initialized or directory deleted.

Fix: synapsync init or synapsync doctor --fix