@intor/cli
v0.1.4
Published
Intor CLI: A command-line tool to generate types, preview messages, and manage i18n configs for TypeScript and JavaScript projects.
Downloads
41
Readme
Intor CLI
A command-line tool for managing i18n configurations and messages in TypeScript projects.
Intor CLI helps you generate types, preview messages, and manage configs for your Intor-powered projects.
Features
- ⚡ Generate TypeScript types from your message files
- 👀 Preview messages for testing translations
- 🛠️ Show and manage i18n configs
- 📂 Supports custom readers and file extensions
Installation
# npx
npx @intor/cli
# Install as a development dependency
npm install -D @intor/cli
yarn add -D @intor/cliUsage
Run the CLI with:
intor [command] [options]Commands
configs | config
Show all i18n configspreview
Preview messagesgenerate
Generate TypeScript types from messages
intor generate --exts .json --exts .md --reader path/to/reader.tsHelp
intor --help
intor generate --help