sync_portfolio
Sync local portfolio elements with GitHub using additive, mirror, or backup modes to manage content across repositories while maintaining data safety with preview options.
Instructions
Sync ALL elements in your local portfolio with your GitHub repository. By default uses 'additive' mode which only adds new items and never deletes (safest). Use 'mirror' mode for exact sync (with deletion confirmations). Use 'backup' mode to treat GitHub as backup source. ALWAYS run with dry_run:true first to preview changes. For individual elements, use 'portfolio_element_manager' instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | No | Sync direction: 'push' (upload to GitHub), 'pull' (download from GitHub), or 'both' (bidirectional sync). Defaults to 'push'. | |
| mode | No | Sync mode: 'additive' (default, only adds new items, never deletes), 'mirror' (makes exact match, requires confirmation for deletions), 'backup' (GitHub as backup, only pulls missing items locally). Defaults to 'additive' for safety. | |
| force | No | Whether to force sync even if there are conflicts. Use with caution as this may overwrite changes. In 'mirror' mode, this skips deletion confirmations. | |
| dry_run | No | Show what would be synced without actually performing the sync. RECOMMENDED to run with dry_run:true first to preview changes. | |
| confirm_deletions | No | In 'mirror' mode, require explicit confirmation for each deletion. Defaults to true unless force:true is set. |