@attest-it/cli 0.0.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 ADDED
@@ -0,0 +1,125 @@
1
+ # @attest-it/cli
2
+
3
+ Command-line interface for the attest-it human-gated test attestation system.
4
+
5
+ ## Overview
6
+
7
+ This package provides the CLI for attest-it. Most users should install the `attest-it` umbrella package instead, which includes this CLI automatically.
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ npm install -g @attest-it/cli
13
+ ```
14
+
15
+ Or install the umbrella package:
16
+
17
+ ```bash
18
+ npm install attest-it
19
+ ```
20
+
21
+ ## Commands
22
+
23
+ ### init
24
+
25
+ Initialize attest-it configuration in your project:
26
+
27
+ ```bash
28
+ attest-it init
29
+ attest-it init --path .attest-it/config.yaml
30
+ ```
31
+
32
+ ### keygen
33
+
34
+ Generate a keypair for signing attestations:
35
+
36
+ ```bash
37
+ attest-it keygen
38
+ attest-it keygen --algorithm rsa
39
+ attest-it keygen --public .attest-it/pubkey.pem
40
+ ```
41
+
42
+ ### status
43
+
44
+ Show the current status of all attestations:
45
+
46
+ ```bash
47
+ attest-it status
48
+ attest-it status --suite my-suite
49
+ attest-it status --json
50
+ ```
51
+
52
+ ### run
53
+
54
+ Run tests and create a signed attestation:
55
+
56
+ ```bash
57
+ attest-it run --suite my-suite
58
+ attest-it run --suite my-suite --yes # Skip confirmation
59
+ attest-it run --suite my-suite --no-attest # Run without attesting
60
+ ```
61
+
62
+ ### verify
63
+
64
+ Verify all attestations (for CI):
65
+
66
+ ```bash
67
+ attest-it verify
68
+ attest-it verify --suite my-suite
69
+ attest-it verify --strict # Fail on warnings
70
+ attest-it verify --json
71
+ ```
72
+
73
+ ### prune
74
+
75
+ Remove stale attestations:
76
+
77
+ ```bash
78
+ attest-it prune
79
+ attest-it prune --dry-run
80
+ attest-it prune --keep-days 90
81
+ ```
82
+
83
+ ## Global Options
84
+
85
+ All commands support these global options:
86
+
87
+ | Option | Description |
88
+ | --------------------- | ------------------- |
89
+ | `-c, --config <path>` | Path to config file |
90
+ | `-v, --verbose` | Verbose output |
91
+ | `-q, --quiet` | Minimal output |
92
+ | `--help` | Show help |
93
+ | `--version` | Show version |
94
+
95
+ ## Exit Codes
96
+
97
+ | Code | Meaning |
98
+ | ---- | ---------------------------- |
99
+ | 0 | Success |
100
+ | 1 | Verification failed or error |
101
+
102
+ ## Programmatic Usage
103
+
104
+ The CLI can also be used programmatically:
105
+
106
+ ```typescript
107
+ import { program } from '@attest-it/cli'
108
+
109
+ program.parse(['node', 'attest-it', 'status', '--json'])
110
+ ```
111
+
112
+ ## Documentation
113
+
114
+ - [Getting Started](../../docs/getting-started.md)
115
+ - [Configuration](../../docs/configuration.md)
116
+ - [GitHub Integration](../../docs/github-integration.md)
117
+
118
+ ## Requirements
119
+
120
+ - Node.js 20+
121
+ - OpenSSL (for key generation and signing)
122
+
123
+ ## License
124
+
125
+ MIT