@canvora/cli 1.0.0 → 1.1.0
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.
- package/README.md +1 -0
- package/bin/canvora.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,6 +65,7 @@ Every command takes `--json` for machine-readable stdout; progress and errors go
|
|
|
65
65
|
--brand <uuid> apply a brand kit
|
|
66
66
|
--style <name> modern | minimal | bold | elegant | playful | corporate | creative | dark
|
|
67
67
|
--resolution 2K|4K 4K on paid plans
|
|
68
|
+
--language <code-or-name> visual text language ("es", "Spanish"); default: matches your input's language
|
|
68
69
|
--wait poll until done (--timeout 600, --poll 5 seconds)
|
|
69
70
|
--json machine-readable output
|
|
70
71
|
```
|
package/bin/canvora.js
CHANGED
|
@@ -22,7 +22,7 @@ process.stderr.on('error', (e) => { if (e.code === 'EPIPE') process.exit(0); thr
|
|
|
22
22
|
|
|
23
23
|
const fs = require('fs');
|
|
24
24
|
const path = require('path');
|
|
25
|
-
const VERSION = '1.
|
|
25
|
+
const VERSION = '1.1.0';
|
|
26
26
|
const API_URL = (process.env.CANVORA_API_URL || 'https://api.canvora.ai').replace(/\/+$/, '');
|
|
27
27
|
const API_KEY = process.env.CANVORA_API_KEY || '';
|
|
28
28
|
const REQUEST_TIMEOUT_MS = 60000;
|
|
@@ -196,6 +196,7 @@ async function cmdGenerate(flags) {
|
|
|
196
196
|
if (flags.style) body.visualStyle = String(flags.style);
|
|
197
197
|
if (flags.resolution) body.resolution = String(flags.resolution);
|
|
198
198
|
if (flags.title) body.title = String(flags.title);
|
|
199
|
+
if (flags.language) body.language = String(flags.language);
|
|
199
200
|
|
|
200
201
|
const created = await api('/api/generations', { method: 'POST', body });
|
|
201
202
|
const gen = created.generation;
|
|
@@ -290,6 +291,7 @@ commands:
|
|
|
290
291
|
[--slides <format>=<n>] [--brand <uuid>]
|
|
291
292
|
[--style modern|minimal|bold|elegant|playful|corporate|creative|dark]
|
|
292
293
|
[--resolution 2K|4K] [--title <t>]
|
|
294
|
+
[--language <code-or-name>] (default: matches input language)
|
|
293
295
|
[--wait [--timeout 600] [--poll 5]]
|
|
294
296
|
status check a generation canvora status <generationId>
|
|
295
297
|
download save output files canvora download <generationId> [--dir out/]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canvora/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "CLI for Canvora (canvora.ai): turn any idea, URL, doc, or PDF into on-brand visuals in 100+ formats, native in 150+ languages. Built for AI agents and automation.",
|
|
5
5
|
"bin": { "canvora": "bin/canvora.js" },
|
|
6
6
|
"files": ["bin", "README.md", "LICENSE"],
|