CLI

Create a CLI Configuration File (Strings)

To automatically create a configuration file, follow these steps:

  1. From the command line, type phrase init to create a .phrase.yml file.

    The configuration process starts in the CLI.

  2. Provide:

    • Access token

    • Phrase project ID

    • Locale file format

    • Location of locale files in the project codebase

A basic configuration file is created.

If using a manually created or copied configuration file, place it in one of these locations:

  • The directory in which the CLI client is called.

  • The home directory of the current user ($HOME in Unix, $HomePath in Windows).

  • The path specified in the PHRASEAPP_CONFIG environment variable.

  • Path to configuration file via the --config flag (e.g. /some/path/to/phrase.yml).

Sample configuration file.

Was this article helpful?

Sorry about that! In what way was it not helpful?

The article didn’t address my problem.
I couldn’t understand the article.
The feature doesn’t do what I need.
Other reason.

Note that feedback is provided anonymously so we aren't able to reply to questions.
If you'd like to ask a question, submit a request to our Support team.
Thank you for your feedback.