Skip to content

CI and Non-Interactive Use

When stdout is not a terminal (or the CI environment variable is set), the CLI prints plain text and never prompts. Combine:

  • CROWDIN_PERSONAL_TOKEN for authentication,
  • the app link: CROWDIN_APP_ID in the app’s .env file - the starters gitignore .env, so a fresh CI checkout is unlinked; run link --app-id <id> in the pipeline (or write the .env line yourself),
  • --yes to confirm actions (e.g. publish --yes),
  • --json / --print for machine-readable list output.
Publish from CI
export CROWDIN_PERSONAL_TOKEN=***
crowdin-serverless-apps link --app-id 123
crowdin-serverless-apps publish --yes

With Crowdin Enterprise, also set CROWDIN_BASE_URL (e.g. https://<org>.api.crowdin.com) when authenticating with a personal token.

The --lite global flag forces the same minimal output in a regular terminal.