# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-old.locize.com/integration/cli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
