The Prismy CLI is a command-line interface tool designed to streamline the management of internationalization (i18n) translations, particularly for new keys within a Git branch. It integrates with Prismy, an AI-powered translation platform, to facilitate localized software development. The current stable version is 1.4.1, with recent updates like v1.3.6 suggesting an active development and release cadence. Key differentiators include its tight integration with Git workflows for automatically detecting new i18n keys and generating translations, as well as features for syncing translation files directly with the Prismy platform. It also provides an agent skill to contextualize AI coding tools with project-specific terminology, tone of voice, and translation workflows, significantly enhancing the developer experience for localized applications. The CLI requires Node.js version 18 or higher for execution.
npm install prismy-cliNo compatibility data collected yet for this library.
This TypeScript script demonstrates how to programmatically invoke Prismy CLI commands, including authentication and initiating a dry run for translation generation, useful for CI/CD or automated workflows.
Upgrade your Node.js environment to version 18 or newer using tools like `nvm` or by installing a recent Node.js distribution.
Always manage API keys securely using environment variables (e.g., `process.env.PRISMY_API_KEY`), a `.env` file, or a dedicated secrets management system, especially in production environments.
Ensure you are on a feature branch with new i18n key additions staged or committed before running `prismy generate`. Use the `--dry-run` flag initially to preview changes without modifying files.
Install the CLI globally using `npm install -g prismy-cli` or ensure it's available in your `node_modules/.bin` directory if installed locally, and use `npx prismy-cli` or include it in your `package.json` scripts.
Verify your API key from your Prismy dashboard and re-authenticate using `prismy auth --key YOUR_VALID_KEY`. Ensure no typos or extra spaces are present.
Upgrade your Node.js installation to version 18 or newer. Tools like `nvm` (Node Version Manager) can help you manage multiple Node.js versions easily.