Standalone Scripts

Optional one-off helper scripts for exporting, cleaning, or resetting provider data outside the app.

Standalone scripts are manual helper tools shipped with CrossWatch. They live under /scripts/.

They are not used by the app or sync engine.

Use them when you need to inspect, clean, or export/restore provider data from a shell.

circle-info

If you want a rollback point, prefer the UI tool: Snapshots.

Use /scripts when you need headless workflows or automation.

circle-exclamation

When to use scripts

Use scripts when you want to change provider-side data without changing CrossWatch.

Examples:

  • You tested syncs and want to undo the mess.

  • You are switching "source of truth" and want a clean provider baseline.

  • Your watch history or ratings are corrupted and you want a reset.

  • You want a CLI snapshot before a risky provider-side change.

These are "do it once, manually, carefully" tools.

Requirements

Scripts reuse your existing CrossWatch config at /config/config.json.

You do not re-enter credentials. Provider blocks must exist in config.json.

circle-info

All standalone scripts read provider auth from config.json.

Before running a script for a provider, connect that provider in Settings → Authentication and click Save. This writes the required tokens/keys into config.json.

How to run

  1. Open a shell in the CrossWatch container.

  2. Go to /scripts/.

  3. Run the script you need.

  4. Follow the numbered menu actions.

Safety notes

  • Some actions are destructive on the provider side.

  • Create a Snapshots snapshot before resets or deletes.

  • If you are fixing local state, use UI tools first:

Last updated