@chinhtrk/pum-cli
v1.1.2
Published
A simple CLI for my project
Downloads
28
Readme
pum-cli
A user-friendly, cross-platform CLI for translating text directly from your terminal. Powered by the Gemini API, pum simplifies your workflow by providing instant, high-quality translations for various languages without leaving your command line.
✨ Features
- Fast Translations: Get quick translations using the Gemini API.
- Easy Setup: The
initcommand automatically creates a configuration file for your API key. - Simple Syntax: Translate messages with a single, intuitive command:
pum translate. - Modular Design: A clean, scalable project structure built with TypeScript and pnpm.
🚀 Getting Started
Installation
Install the CLI globally with pnpm.
pnpm install -g pum-cliConfiguration
Before using the translation feature, you need to set up your Gemini API key.
pum init --geminiKey=...This will create a config.json file in your home directory (~/.pum-cli/config.json). Open this file and paste your Gemini API key.
{
"GEMINI_KEY": "YOUR_GEMINI_API_KEY_HERE"
}Usage
Translate a message with the translate command, specifying the target language.
pum translate --lang=fr🤝 Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page and submit a pull request.
