Docs
Cli
CLIlocalesy sync

localesy sync

Pull remote changes and push local changes in a single command, with conflict resolution and rename detection.

Synopsis

localesy sync [--pull-only | --push-only] [--dry-run] [--env <name>]

Description

Keeps your codebase and Localesy in agreement. By default localesy sync does both directions: it pulls remote changes from Localesy and pushes your local changes back.

sync is built for real codebases:

  • Conflict resolution - when the same key changed both locally and remotely, the CLI surfaces the conflict and lets you resolve it per key.
  • Incremental - changes are tracked per file, so only what actually changed is transferred.
  • Rename detection - if you move or rename translation files, the CLI detects it and confirms before applying, instead of treating it as delete + create.

Note: localesy sync is git-native. It writes translation files into your repository, so your normal git diff and review workflow applies to translation changes too.

Options

OptionDescription
--pull-onlyOnly bring remote changes into your codebase.
--push-onlyOnly send local changes to Localesy.
--dry-runShow what would change without writing anything.
--env <name>Run against a specific Localesy environment.

Examples

localesy sync                 # pull then push
localesy sync --pull-only     # only download
localesy sync --push-only     # only upload
localesy sync --dry-run       # preview changes

See also

Was this helpful?
Docs
Copyright © Localesy. All rights reserved.