# gt: General Translation CLI tool: Continuous translation
URL: https://generaltranslation.com/en-US/docs/cli/guides/continuous-translation.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: Choose how to keep translations up to date automatically on every deploy or push.

Continuous translation translates only new or changed content, applies your assigned Context Groups, and preserves existing translations on every run.

Start by running [`npx gt translate`](/docs/cli/reference/commands/translate) before your build command in CD — it is the simplest setup. Pick another approach if you want automated pull requests or separate CI stages.

## Choose an approach [#approaches]

<Cards>
  <Card title="Running in CD" href="/docs/cli/guides/continuous-translation/running-in-cd">
    Simplest setup. Prepend gt translate to your build command so every deploy ships current translations.
  </Card>
  <Card title="Using GitHub Actions" href="/docs/cli/guides/continuous-translation/using-github-actions">
    Use the official GitHub Action to translate on push and open a pull request automatically.
  </Card>
  <Card title="Staging in CI" href="/docs/cli/guides/continuous-translation/staging-in-ci">
    Start gt stage while lint and tests run, then download completed translations before your build.
  </Card>
  <Card title="Splitting CI stages" href="/docs/cli/guides/continuous-translation/splitting-ci-stages">
    Separate upload, enqueue, and download across independent jobs for standalone files.
  </Card>
  <Card title="Locadex GitHub App" href="/docs/platform/locadex/quickstart">
    Connect a public or private GitHub repository in the Dashboard for hands-free translation pull requests and auto-merge.
  </Card>
</Cards>

## Shared requirements [#credentials]

Every CLI automation path needs two things:

1. **A committed `gt.config.json`** at your app root declaring your locales, files, and output paths. (See [Configuring the CLI](/docs/cli/guides/configuring)).
2. **A scoped [project API key](/docs/platform/dashboard/reference/api-keys#create-project-keys)** stored with your project ID as `GT_API_KEY` and `GT_PROJECT_ID` in your CI/CD secrets. Grant **Files > Write** (includes Read), **Translation queue > Enabled**, and **Context > Write** in **Project > API Keys**, or create one with [`gt api-key create`](/docs/cli/reference/commands/api-key-create):

```bash
npx gt api-key create --name "CI translation" \
  --permission project:files:read \
  --permission project:files:write \
  --permission project:translations:enqueue \
  --permission project:context:write
```

<Callout type="warn">
  A runtime-only development key is not sufficient. Never commit `GT_API_KEY`, place it in `gt.config.json`, or expose it with a public prefix such as `NEXT_PUBLIC_` or `VITE_`.
</Callout>

## Next steps

- /docs/cli/guides/continuous-translation/running-in-cd
- /docs/cli/guides/continuous-translation/using-github-actions
- /docs/cli/guides/continuous-translation/staging-in-ci
- /docs/cli/guides/continuous-translation/splitting-ci-stages

## Sitemap

See the full [sitemap](https://generaltranslation.com/sitemap.md) for all pages.
