Skip to documentation
DocumentationCommand-line interface

Configuration and authentication

Understand rerune.json, keep management credentials outside version control, and configure the correct platform paths.

On this page

The project configuration

The interactive CLI writes rerune.json in the current directory. Run subsequent commands from that directory. This example shows a generated Flutter configuration; select your own project, language set, and platform instead of copying its identifiers.

rerune.json · generated configuration example

{
  "api_key": "${RERUNE_API_KEY}",
  "project_id": "asd819c873b1184c8asdasd",
  "languages": [
    { "code": "en", "name": "English", "main": false },
    { "code": "de", "name": "German", "main": true },
    { "code": "it", "name": "Italian", "main": false },
    { "code": "pt", "name": "Portuguese", "main": false }
  ],
  "translations_path": "lib/languages/I10n/",
  "platform": "flutter",
  "platform_metadata": {
    "code": "flutter",
    "name": "Flutter",
    "default_path": "lib/languages/I10n/",
    "has_lang_dir": false,
    "lang_dir_prefix": "",
    "lang_dir_suffix": "",
    "lang_dir_separator": "",
    "lang_code_as_prefix": false,
    "single_file": false
  }
}

Configuration fields

FieldPurpose
api_keyManagement credential or an environment-variable reference such as ${RERUNE_API_KEY}.
project_idThe project that pull and push synchronize.
languagesLanguage codes, display names, and the main-language flag.
translations_pathThe directory containing your platform translation files.
platform / platform_metadataThe format identifier and file-layout rules selected during setup.
last_syncCLI-maintained synchronization state used with key timestamps during merging.

Keep the generated platform metadata intact unless you are deliberately changing the format layout. Do not reset last_sync as a shortcut for resolving conflicting changes; inspect the local and remote values first.

Supply an API key

Create an API key in the dashboard account area. Set RERUNE_API_KEY in the process environment or a local .env file. An environment-backed rerune.json keeps the placeholder reference in the file and resolves the actual key at runtime.

Review rerune.json before committing it. It is suitable for sharing only after any literal credential has been replaced with the environment reference. Keep the local .env file ignored by Git.