Skip to main content
shipi18n logo|Documentation

CLI Configuration

There is no config file. Everything is a flag or an environment variable, which keeps the CLI reproducible in CI.

Environment variables

VariableUsed whenDescription
ANTHROPIC_API_KEYdefault providerYour Anthropic key
OPENAI_API_KEY-p openaiYour OpenAI key

Defaults in package.json

The idiomatic way to lock in options for a project is an npm script:

{
  "scripts": {
    "i18n": "shipi18n translate locales/en.json -t es,fr,de,ja --incremental"
  }
}

Now npm run i18n means the same thing on every machine and in CI, and the options are reviewed like any other change.

Running it automatically

{
  "scripts": {
    "i18n": "shipi18n translate locales/en.json -t es,fr --incremental",
    "build": "npm run i18n && vite build"
  }
}

For CI, the GitHub Action is usually a better fit — it can commit the result or open a pull request for review.