@vertana/cli 0.1.0-dev.4 → 0.1.0-dev.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +93 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,93 @@
1
+ @vertana/cli
2
+ ============
3
+
4
+ [![JSR][JSR badge]][JSR]
5
+ [![npm][npm badge]][npm]
6
+
7
+ > [!CAUTION]
8
+ > Vertana is currently in early development for proof of concept purposes,
9
+ > and is not yet ready for production use. The API is subject to change,
10
+ > and there may be bugs or missing features.
11
+
12
+ Command-line interface for [Vertana] translation. Translate documents from
13
+ the terminal with support for multiple providers (OpenAI, Anthropic, Google).
14
+
15
+ [JSR]: https://jsr.io/@vertana/cli
16
+ [JSR badge]: https://jsr.io/badges/@vertana/cli
17
+ [npm]: https://www.npmjs.com/package/@vertana/cli
18
+ [npm badge]: https://img.shields.io/npm/v/@vertana/cli?logo=npm
19
+ [Vertana]: https://vertana.org/
20
+
21
+
22
+ Installation
23
+ ------------
24
+
25
+ ~~~~ bash
26
+ deno install -g --name vertana --allow-all jsr:@vertana/cli
27
+ npm install -g @vertana/cli
28
+ pnpm add -g @vertana/cli
29
+ bun add -g @vertana/cli
30
+ ~~~~
31
+
32
+
33
+ Quick start
34
+ -----------
35
+
36
+ First, configure your API key and default model:
37
+
38
+ ~~~~ bash
39
+ vertana config api-key openai
40
+ vertana config model openai:gpt-4o
41
+ ~~~~
42
+
43
+ Then translate a file:
44
+
45
+ ~~~~ bash
46
+ vertana translate -t ko document.md
47
+ ~~~~
48
+
49
+ Or pipe text through stdin:
50
+
51
+ ~~~~ bash
52
+ echo "Hello, world!" | vertana translate -t ko
53
+ ~~~~
54
+
55
+
56
+ Commands
57
+ --------
58
+
59
+ ### translate
60
+
61
+ Translate text or files to a target language.
62
+
63
+ ~~~~ bash
64
+ vertana translate [options] [input]
65
+ ~~~~
66
+
67
+ Options:
68
+
69
+ - `-t, --target LANG`: Target language (required)
70
+ - `-s, --source LANG`: Source language (optional, auto-detected)
71
+ - `-T, --type TYPE`: Media type (`text/plain`, `text/markdown`, `text/html`)
72
+ - `--tone TONE`: Translation tone (formal, informal, technical, etc.)
73
+ - `--domain DOMAIN`: Subject domain for terminology
74
+ - `-g, --glossary TERM=TRANS`: Add glossary entry (repeatable)
75
+ - `--glossary-file FILE`: Load glossary from file
76
+ - `-o, --output FILE`: Output file (defaults to stdout)
77
+
78
+
79
+ ### config
80
+
81
+ Manage configuration settings.
82
+
83
+ ~~~~ bash
84
+ vertana config model [PROVIDER:MODEL] # Set or display default model
85
+ vertana config api-key PROVIDER [KEY] # Manage API keys
86
+ ~~~~
87
+
88
+ Supported providers: `openai`, `anthropic`, `google`
89
+
90
+
91
+ For more resources, see the [docs].
92
+
93
+ [docs]: https://vertana.org/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertana/cli",
3
- "version": "0.1.0-dev.4+f111356c",
3
+ "version": "0.1.0-dev.7+1c2e3166",
4
4
  "description": "Command-line interface for Vertana translation",
5
5
  "keywords": [
6
6
  "LLM",