Skip to main content

synapsync update

Update installed cognitives to their latest versions.

Usage​

synapsync update [cognitive] [options]

Options​

OptionDescription
-a, --allUpdate all cognitives
-f, --forceForce update even if latest
--dry-runPreview updates without applying
--jsonJSON output

Examples​

Check for Updates​

synapsync update
Checking for updates...

Updates available:
code-reviewer 1.0.0 → 1.1.0
react-patterns 2.0.0 → 2.1.0

Run 'synapsync update --all' to update all
Run 'synapsync update <name>' to update specific cognitive

Update Specific Cognitive​

synapsync update code-reviewer
✓ Updated code-reviewer: 1.0.0 → 1.1.0

Update All​

synapsync update --all
Updating all cognitives...

✓ code-reviewer: 1.0.0 → 1.1.0
✓ react-patterns: 2.0.0 → 2.1.0
⊘ api-designer: already latest (1.0.0)

Updated 2 cognitives

Dry Run​

synapsync update --all --dry-run
[DRY RUN] Would update:

code-reviewer 1.0.0 → 1.1.0
react-patterns 2.0.0 → 2.1.0

Force Update​

synapsync update code-reviewer --force

Re-downloads even if already at latest version.

JSON Output​

synapsync update --json
{
"updates": [
{
"name": "code-reviewer",
"current": "1.0.0",
"latest": "1.1.0",
"hasUpdate": true
}
]
}

Notes​

  • Only checks cognitives installed from the registry
  • Local and GitHub-installed cognitives are skipped
  • Run sync after update to refresh provider symlinks