/boxel-cli:realm-syncfrom boxel-cli
Syncs files between local disk and a Boxel realm: push, pull, bidirectional sync, watch for continuous mirroring, create, remove, or list realms.
Ships in boxel-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Wraps the boxel realm subcommands that move data between a local directory and a realm on the realm server. Pick the right verb for the direction:
push — local → remote. Deploy local edits to the realm.pull — remote → local. Download a realm into a directory.sync — bidirectional. Reconcile both sides; needs a --prefer-* flag when there are conflicts.watch — remote → local, continuous. Long-running poller; pulls remote changes into the local directory as they happen. Locally-edited files are not overwritten by default — the watcher skips downloads when the local copy diverges from the sync manifest, logs a warning, and keeps polling. Pass --overwrite-local to opt back into the unconditional mirror behavior.create — provision a new realm on the realm server.remove — delete a realm and unlink it from the active profile.list — see realms the active profile can access.| Ask | Run |
|---|---|
| "push my changes" / "deploy" | boxel realm push <local-dir> <realm-url> |
| "download a realm" / "pull it locally" | boxel realm pull <realm-url> <local-dir> |
| "sync" / "keep them in lockstep" | boxel realm sync <local-dir> <realm-url> --prefer-newest (or --prefer-local / --prefer-remote) |
| "watch the realm" / "live-mirror remote changes locally" | boxel realm watch start <realm-url> <local-dir> |
| "stop watching" / "kill the watcher" | boxel realm watch stop <local-dir> |
| "make a new realm" | boxel realm create <realm-name> <display-name> |
| "delete this realm" / "remove a realm" | boxel realm remove <realm-url> |
| "what realms do I have access to" | boxel realm list |
A profile must be active. If boxel profile list shows none, the user has to run boxel profile add first — see /boxel-cli:profile.
sync accepts conflict-resolution flags (one at a time):
--prefer-local — local content wins on conflict.--prefer-remote — remote content wins on conflict.--prefer-newest — pick whichever side has the newer mtime. Usually the safest "stay in sync" choice.--delete — propagate deletions both ways (destructive — pair with a checkpoint).--dry-run — preview without writing. Good for first-time runs.push and pull have their own --delete and --dry-run flags but no --prefer-* flags (they're one-directional). When in doubt, dry-run first.
watch protects local edits without a flag: by default any file whose local hash differs from the sync manifest is skipped (with a yellow ⚠ skipped … line) instead of overwritten. The warning re-fires on every poll until the user reconciles via boxel realm sync … (e.g. --prefer-newest) or reruns watch with --overwrite-local to accept the remote.
--no-realm-events)Every write to a realm normally broadcasts realm events to each session room subscribed to it. Open tabs use them to show that the realm is indexing, then reload the changed cards, modules and live searches. push --no-realm-events marks each write it sends so the realm server announces none of them. The files are still written and indexed, and the server's caches are still invalidated. Open tabs just aren't told, so they pick the new content up on their next page load.
Use it when a push replaces a realm's content out of band, for a realm people mostly read rather than edit:
Don't use it when someone needs to see the push as it lands:
When unsure, leave it off. Realm servers that predate the flag ignore it and announce as usual.
A workspace's user-authored skills live in the realm as skills/<name>/SKILL.md (see /boxel-skills:boxel-skill-authoring). pull, sync, and watch expose them to Claude Code with no extra step: each one is copied into <local-dir>/.claude/skills/<realm>-<name>/, where <realm> is the last segment of the realm URL. So a skill named trip-planner in …/alice/experiments/ becomes /experiments-trip-planner in the next session.
.claude/skills/ directories below the working directory, so a realm pulled into a subdirectory still surfaces its skills (under a directory-qualified name when two skills share one). Pulling a realm into the home directory itself is refused, since ~/.claude/skills is Claude Code's personal scope.skills/<name>/, never in .claude/skills/ — the checkout is what push and sync carry back to the realm, and an edit made to a copy is overwritten without warning by the next pull, sync, or watch tick..claude/skills/ directory boxel did not write is never touched..claude/ is ignored by every direction of sync, so the mirror is never pushed into the realm.--no-claude-skills (or set BOXEL_DISABLE_CLAUDE_SKILLS_SYNC=1) to skip it.If watch is starting in a directory that already mirrors the realm but has no .boxel-sync.json (e.g. populated by hand, by git clone, or by a different tool), run boxel realm pull first. Without a manifest every existing file looks "diverged" and the first poll warns about each one until reconciled.
Generated from the boxel-cli Commander tree by pnpm build:plugin. Edit prose outside the generated block — never inside it.
boxel realm sync <local-dir> <realm-url>Bidirectional sync between a local directory and a Boxel realm
Arguments:
<local-dir> — The local directory to sync<realm-url> — The URL of the target realm (e.g., https://app.boxel.ai/demo/)Options:
--prefer-local — Resolve conflicts by keeping local version--prefer-remote — Resolve conflicts by keeping remote version--prefer-newest — Resolve conflicts by keeping newest version--delete — Sync deletions both ways--dry-run — Preview without making changes--no-claude-skills — Skip mirroring the realm's skills/ directory into the checkout's .claude/skills/ (env: BOXEL_DISABLE_CLAUDE_SKILLS_SYNC=1)--realm-secret-seed — Administrative auth: prompt for a realm secret seed and mint a JWT locally instead of using a Matrix profile (env: BOXEL_REALM_SECRET_SEED; names the paired Matrix server from MATRIX_SERVER_NAME)--confirm-shared-keys — Save a policy change that lets people who aren't signed in use keys shared into a workspace, after listing them, without askingboxel realm watch start <realm-url> <local-dir>Start watching a Boxel realm for server-side changes and pull them into a local directory
Arguments:
<realm-url> — The URL of the realm to watch (e.g., https://app.boxel.ai/demo/)<local-dir> — The local directory to write changes intoOptions:
-i, --interval <seconds> — Polling interval in seconds-d, --debounce <seconds> — Seconds to wait after a burst of changes before applying them--realm-secret-seed — Administrative auth: prompt for a realm secret seed and mint a JWT locally instead of using a Matrix profile (env: BOXEL_REALM_SECRET_SEED; names the paired Matrix server from MATRIX_SERVER_NAME)--overwrite-local — Overwrite local files when the remote changes. Default: skip + warn when the local copy diverges from the sync manifest.--no-claude-skills — Skip mirroring the realm's skills/ directory into the checkout's .claude/skills/ (env: BOXEL_DISABLE_CLAUDE_SKILLS_SYNC=1)boxel realm watch stopStop all running boxel realm watch processes
boxel realm push <local-dir> <realm-url>Push local files to a Boxel realm
Arguments:
<local-dir> — The local directory containing files to sync<realm-url> — The URL of the target realm (e.g., https://app.boxel.ai/demo/)Options:
--delete — Delete remote files that do not exist locally--dry-run — Show what would be done without making changes--force — Upload all files, even if unchanged--changed-since <revision> — Upload only files that differ from this git revision (one the realm already holds), plus files git does not track and files missing from the realm, instead of comparing against the sync manifest. Repeat it to name every revision the realm may hold part of, such as one a failed sync stopped partway through; a file is skipped only when it matches all of them. A file edited directly on the realm stays as it is until it changes in git. The local directory must be a git checkout whose history reaches each revision--no-realm-events — Index the pushed changes without announcing them to open tabs, which pick them up on their next load (for deploys)--realm-secret-seed — Administrative auth: prompt for a realm secret seed and mint a JWT locally instead of using a Matrix profile (env: BOXEL_REALM_SECRET_SEED; names the paired Matrix server from MATRIX_SERVER_NAME)--confirm-shared-keys — Save a policy change that lets people who aren't signed in use keys shared into a workspace, after listing them, without askingboxel realm pull <realm-url> <local-dir>Pull files from a Boxel realm to a local directory
Arguments:
<realm-url> — The URL of the source realm (e.g., https://app.boxel.ai/demo/)<local-dir> — The local directory to sync files toOptions:
--delete — Delete local files that do not exist in the realm--dry-run — Show what would be done without making changes--no-claude-skills — Skip mirroring the realm's skills/ directory into the checkout's .claude/skills/ (env: BOXEL_DISABLE_CLAUDE_SKILLS_SYNC=1)--realm-secret-seed — Administrative auth: prompt for a realm secret seed and mint a JWT locally instead of using a Matrix profile (env: BOXEL_REALM_SECRET_SEED; names the paired Matrix server from MATRIX_SERVER_NAME)boxel realm create <realm-name> <display-name>Create a new realm on the realm server
Arguments:
<realm-name> — realm name (lowercase, numbers, hyphens only)<display-name> — display name for the realmOptions:
--background <url> — background image URL--icon <url> — icon image URLboxel realm remove <realm-url>Remove a realm — deletes server-side files and unlinks it from your realm list
Arguments:
<realm-url> — realm URL to removeOptions:
-y, --yes — Skip the interactive confirmation prompt--dry-run — Preview the change without writing to Matrixboxel realm listList realms accessible to the active profile
Options:
--json — Output JSON--all-accessible — Show all accessible realms, including hidden ones--hidden — Show only realms not in the user's UI realm list--include-archived — Also list realms the caller owns that have been archivedboxel realm push --delete will remove remote files that don't exist locally. Confirm the user intends destructive sync before adding the flag.--no-realm-events to a push into a realm someone has open. Their tabs go stale, and a stale tab's next save can overwrite the push. See Pushing without realm events.<realm-url> argument is the realm's base URL (https://app.boxel.ai/owner/realm/), not a card URL inside the realm. If the user pastes a card URL, strip the path back to the realm root.boxel realm create, follow up with boxel realm wait-for-ready (see /boxel-cli:realm-history).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cardstack/boxel --plugin boxel-cli10 skills in this plugin
/boxel-apiUse when calling Boxel realm-server APIs from code — primarily federated search across realms. Documents the boxel-cli programmatic surface (`BoxelCLIClient`) and the matching CLI commands. Read this whenever you need to query a realm's index./boxel-commandUse when running a Boxel host command via the realm server's prerenderer — invoking commands like `get-card-type-schema`, `evaluate-module`, `instantiate-card`, or any other module exposed at `@cardstack/boxel-host/commands/.../default`. Documents `boxel run-command` and the matching `client.runCommand()` method./boxel-file-structureBoxel File Structure RulesOther plugins' skills for the same job