> ## Documentation Index
> Fetch the complete documentation index at: https://developers.phrase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Phrase Strings GitHub Action

<Info>This tool is for **Phrase Strings** only.</Info>

The Phrase Strings GitHub Action installs the Phrase CLI in your GitHub Actions workflow, enabling you to automate pushing and pulling translation files as part of your CI/CD pipeline.

## Usage

Add the action to your workflow to install the Phrase CLI, then use it to sync your translation files:

```yaml theme={null}
steps:
  - uses: actions/checkout@v4
  - uses: phrase/setup-cli@v1
    with:
      version: 2.19.0
  - run: phrase pull
  - run: phrase push --wait
    env:
      PHRASE_ACCESS_TOKEN: ${{ secrets.PHRASE_ACCESS_TOKEN }}
```

## Configuration

The action requires a `.phrase.yml` configuration file in your repository. Authentication is handled via the `PHRASE_ACCESS_TOKEN` environment variable, which should be stored as a GitHub Actions secret.

<Card title="Phrase Strings GitHub Action on GitHub" icon="github" horizontal href="https://github.com/phrase/setup-cli" />
