Skip to content
CLI Tools
Command

/sync-reset

Reset claude-sync configuration and optionally clear data

BOOST
From plugin
claude-sync
2999 skills9 commands
Install
> /plugin marketplace add tawanorg/claude-sync
> /plugin install claude-sync@claude-sync

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/sync-reset

Context preview

What this command does when you run it.

Reset claude-sync configuration and optionally clear data

Command definition

sync-reset.md
name: sync-reset
description: Reset claude-sync configuration and optionally clear data

Sync Reset

Reset claude-sync configuration. Use this if you forgot your passphrase or want to start fresh.

Check Current State

First check if claude-sync is configured:

test -f ~/.claude-sync/config.yaml && echo "configured" || echo "not configured"

Confirm with User

Use `AskUserQuestion` to confirm the reset and ask what to clear:

**Options:** 1. **Config only** - Just delete local config and key (can reconfigure) 2. **Config + remote** - Also delete all files from cloud storage 3. **Full reset** - Clear config, remote, AND local sync state

**Warning the user:**

  • If clearing remote, all synced files will be deleted from cloud storage
  • They'll need to run `/sync-init` again after reset
  • If they forgot passphrase, their encrypted remote files cannot be recovered

Execute Reset

Based on user choice:

**Config only:**

claude-sync reset --force

**Config + remote:**

claude-sync reset --remote --force

**Full reset (nuclear option):**

claude-sync reset --remote --local --force

After Reset

Inform the user:

  • Configuration has been cleared
  • Run `/sync-init` to set up again
  • If they cleared remote, they can push from current device with new passphrase
Ships withclaude-sync

Sync Claude Code sessions across devices using Cloudflare R2 with end-to-end encryption

Get the whole plugin

Other commands on claude-sync.