@certivu/cli 1.1.0 → 1.1.1
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 +100 -0
- package/package.json +6 -3
package/README.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# @certivu/cli
|
|
2
|
+
|
|
3
|
+
Command-line tool for [Certivu](https://certivu.ai) — sign and verify AI-generated content from your terminal.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @certivu/cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
certivu --version
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Quick Start
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# Save your API key
|
|
19
|
+
certivu config set api-key ctv_key_...
|
|
20
|
+
certivu config set generator-id your-generator-id
|
|
21
|
+
certivu config set private-key BASE64_PRIVATE_KEY
|
|
22
|
+
|
|
23
|
+
# Sign a file
|
|
24
|
+
certivu sign ./output.jpg --model stable-diffusion-xl
|
|
25
|
+
|
|
26
|
+
# Verify a file
|
|
27
|
+
certivu verify ./output.jpg
|
|
28
|
+
|
|
29
|
+
# Look up a token
|
|
30
|
+
certivu status ctv_7f3kx9mq2...
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Commands
|
|
34
|
+
|
|
35
|
+
### `certivu sign <file>`
|
|
36
|
+
|
|
37
|
+
Hash, sign, and submit a provenance record for AI-generated content. Requires an API key, generator ID, and private key.
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
certivu sign ./output.jpg --model stable-diffusion-xl
|
|
41
|
+
✓ Signed
|
|
42
|
+
Token ctv_7f3kx9mq2...
|
|
43
|
+
Record ID rec-00000000-...
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
| Flag | Description |
|
|
47
|
+
|------|-------------|
|
|
48
|
+
| `--model <name>` | AI model name — required |
|
|
49
|
+
| `--generator-id <id>` | Override generator ID |
|
|
50
|
+
| `--private-key <key>` | Override ML-DSA private key (base64) |
|
|
51
|
+
| `--api-key <key>` | Override API key |
|
|
52
|
+
|
|
53
|
+
### `certivu verify <file>`
|
|
54
|
+
|
|
55
|
+
Verify content authenticity. Free — no API key required.
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
certivu verify ./output.jpg
|
|
59
|
+
✓ Authentic — HIGH confidence
|
|
60
|
+
Org Acme AI
|
|
61
|
+
Model stable-diffusion-xl
|
|
62
|
+
Signed 2026-06-07T...
|
|
63
|
+
Source xmp
|
|
64
|
+
|
|
65
|
+
Signals: watermark ✓ record ✓ signature ✓
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
| Flag | Description |
|
|
69
|
+
|------|-------------|
|
|
70
|
+
| `--token <ctv_token>` | Provide token explicitly (extracted automatically if omitted) |
|
|
71
|
+
|
|
72
|
+
### `certivu status <ctv_token>`
|
|
73
|
+
|
|
74
|
+
Look up a token without re-uploading the file.
|
|
75
|
+
|
|
76
|
+
### `certivu config`
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
certivu config set api-key ctv_key_abc123
|
|
80
|
+
certivu config set generator-id <uuid>
|
|
81
|
+
certivu config set private-key <base64>
|
|
82
|
+
certivu config get
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Config is stored at `~/.config/certivu/config.json`. Environment variables (`CERTIVU_API_KEY`, `CERTIVU_GENERATOR_ID`, `CERTIVU_PRIVATE_KEY`, `CERTIVU_BASE_URL`) override the config file.
|
|
86
|
+
|
|
87
|
+
## Requirements
|
|
88
|
+
|
|
89
|
+
Node.js 18 or later.
|
|
90
|
+
|
|
91
|
+
## Links
|
|
92
|
+
|
|
93
|
+
- [Dashboard](https://dashboard.certivu.ai)
|
|
94
|
+
- [Docs](https://docs.certivu.ai/guides/cli)
|
|
95
|
+
- [TypeScript SDK](https://www.npmjs.com/package/@certivu/sdk)
|
|
96
|
+
- [certivu.ai](https://certivu.ai)
|
|
97
|
+
|
|
98
|
+
## License
|
|
99
|
+
|
|
100
|
+
Copyright (c) 2026 Certivu. All rights reserved.
|
package/package.json
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@certivu/cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Certivu CLI — sign and verify AI-generated content",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"homepage": "https://certivu.ai",
|
|
7
|
+
"repository": { "type": "git", "url": "https://github.com/art-emini/certivu" },
|
|
5
8
|
"bin": {
|
|
6
9
|
"certivu": "./dist/index.js"
|
|
7
10
|
},
|
|
8
|
-
"files": ["dist"],
|
|
11
|
+
"files": ["dist", "README.md"],
|
|
9
12
|
"scripts": {
|
|
10
13
|
"dev": "bun run src/index.ts",
|
|
11
|
-
"build": "tsup",
|
|
14
|
+
"build": "tsup && chmod +x dist/index.js",
|
|
12
15
|
"typecheck": "tsc --noEmit",
|
|
13
16
|
"lint": "biome check src"
|
|
14
17
|
},
|