mix dala.sync (dala_dev v0.3.0)

Copy Markdown View Source

Synchronizes a local directory with a remote directory on connected device(s).

Computes a diff based on file sizes and modification times, then:

  • Pushes files that are new or changed locally
  • Pulls files that are new or changed on device
  • Optionally deletes remote files that don't exist locally

Usage

mix dala.sync <local_path> <remote_path>

Options

  • --device <id> - Target a specific device (default: all devices)
  • --delete - Delete remote files not present locally
  • --dry-run - Print actions without executing
  • --progress - Print per-file progress

Examples

# Sync fixtures, deleting remote extras
mix dala.sync priv/fixtures fixtures --device emulator-5554 --delete

# Dry run to see what would change
mix dala.sync config config --device emulator-5554 --dry-run

# Full sync with progress
mix dala.sync assets assets --device emulator-5554 --delete --progress