Skip to content

Pairit CLI 0.3.7

Choose a tag to compare

@harangju harangju released this 18 Nov 22:12
e27091f

Upgrade:

npm install -g pairit

What's new

  • Keep API keys out of your shell history. config upload can read a key from an environment variable (--openai-api-key-env VAR, --anthropic-api-key-env VAR) or from stdin (--openai-api-key-stdin, --anthropic-api-key-stdin). The old --openai-api-key <key> flags still work.
  • Remove a stored key. --clear-openai-api-key and --clear-anthropic-api-key remove a config's stored key. These need Platform 2026.11.18.2.
  • Safer sign-in. pairit login checks that the sign-in it receives is the one it started. Nothing changes in how you log in.
  • Safer CSV exports. Text that starts with =, +, -, @, a tab or a carriage return gets a leading ', so spreadsheets don't run participant answers as formulas. Text that is only a number, like -5, is left as it is. If your analysis reads text answers from CSV, strip a leading ', or export with --format jsonl, which is unchanged.

Changes you may notice

  • config lint, compile and upload reject an endRedirectUrl that isn't an http:// or https:// URL.
  • config upload and config lint refuse HTML and schema files that are symlinks pointing outside the config's folder.
  • The saved login in ~/.pairit is readable only by you.

Full changelog: https://docs.pairium.ai/pairit/changelog/