> For the complete documentation index, see [llms.txt](https://docs-old.locize.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-old.locize.com/integration/cli.md).

# CLI

{% hint style="info" %}
By using our [CLI sync command](https://github.com/locize/locize-cli#synchronize-locize-with-your-repository-or-any-other-local-directory) for example, you can keep your existing code setup and synchronize the translations with locize.\
An example on how this could look like can be seen in [this tutorial](https://github.com/locize/react-tutorial#step-1---keep-existing-code-setup-but-synchronize-with-locize).

*The CLI will use the normal* [*API*](/integration/api.md) *endpoints, so normal modification and download charges etc. will occur.*
{% endhint %}

Find all relevant information on the [locize-cli documentation](https://github.com/locize/locize-cli).

```bash
locize sync --api-key my-api-key-d9de-4f55-9855-a9ef0ed44672 --project-id my-project-id-93e1-442a-ab35-24331fa294ba
```

### Example with the CLI migrate command

{% embed url="<https://www.youtube.com/watch?v=XNTHvuFcnWc>" %}
[upload content](https://www.youtube.com/watch?v=XNTHvuFcnWc) part of [showcase/demo](https://www.youtube.com/watch?v=TFV_vhJs5DY)
{% endembed %}
