.nt3.yml configuration file in the current directory. This file tells the CLI which project to sync, where your translation files are located, and which format they use.
Usage
Interactive mode
Runningnt3 init without flags launches an interactive prompt:
Non-interactive mode
Provide the--project-id flag to skip all prompts. Remaining flags are optional and fall back to their defaults:
--project-id activates non-interactive mode. Any unprovided option uses its default value.
Options
| Flag | Description | Default |
|---|---|---|
-p, --project-id <id> | Project ID from the Entri dashboard | (prompted) |
-s, --source-language <lang> | Source language code | en |
--path <pattern> | File path pattern with {lang} placeholder | src/locales/{lang}.json |
-f, --format <format> | File format | json-nested |
--force | Overwrite an existing .nt3.yml | false |
Output
nt3 init creates a .nt3.yml file in the current directory:
{lang} placeholder in the path is replaced with the language code at runtime — for example, locales/fr/messages.po for French.
The —force flag
If.nt3.yml already exists, nt3 init exits with an error to prevent accidental overwrites:
--force to replace the existing config:
Supported formats
| Value | Description |
|---|---|
json-flat | Flat key-value JSON |
json-nested | Nested JSON objects |
yaml | YAML key-value |
po | GNU gettext PO files |
xliff | XLIFF 1.2 |
xliff2 | XLIFF 2.0 |
arb | Application Resource Bundle (Flutter) |
android-xml | Android string resources |
ios-strings | iOS Localizable.strings |
ios-stringsdict | iOS Stringsdict (plurals) |
Finding your Project ID
Your Project ID is available in the Entri dashboard under Project Settings. It starts withproj_.