@quillaudits/cli 0.1.3 → 0.2.2

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 (3) hide show
  1. package/README.md +37 -29
  2. package/dist/qs.js +22098 -266
  3. package/package.json +10 -3
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # QuillAudits CLI
2
2
 
3
- Submit Solidity projects for audit from the command line.
3
+ Paid audits from the terminal. Same path as the web app: **quote → order → pay → start**.
4
+
5
+ Prefer **Cursor / Claude**? Use [`@quillaudits/mcp`](../mcp) instead — [MCP guide](../../docs/MCP.md).
4
6
 
5
7
  ## Install
6
8
 
@@ -10,51 +12,57 @@ npm install -g @quillaudits/cli
10
12
  npx @quillaudits/cli <command>
11
13
  ```
12
14
 
13
- Requires Node.js 18+.
15
+ Node.js 18+.
14
16
 
15
- ## Quick Start
17
+ ## Quick start
16
18
 
17
19
  ```bash
18
- # 1. Get an API key from the QuillAudits web UI
19
- # Settings → API Keys → Create API Key
20
-
21
- # 2. Configure the CLI
20
+ # Settings → API keys → create qs_live_…
22
21
  qs init
23
22
 
24
- # 3. Submit an audit
25
- qs audit https://github.com/org/contract --ref main --watch
23
+ qs audit https://github.com/org/contract --ref main --yes --watch
24
+ qs audit --dir ./contracts --yes --watch
25
+
26
+ qs audit --dir ./contracts --no-pay
27
+ qs pay <quote-id> --yes --watch
26
28
 
27
- # 4. View results
28
29
  qs findings <job-id>
29
- qs report <job-id>
30
+ qs report <job-id> --out ./report.pdf
30
31
  ```
31
32
 
32
33
  ## Commands
33
34
 
34
35
  | Command | Description |
35
36
  |---|---|
36
- | `qs init` | Configure API key + URL |
37
- | `qs audit <git-url>` | Submit a git repo for audit |
38
- | `qs audit --zip <path>` | Submit a zip/sol file for audit |
39
- | `qs status <job-id>` | Check audit status |
40
- | `qs watch <job-id>` | Live progress stream |
41
- | `qs findings <job-id>` | List findings |
42
- | `qs report <job-id>` | Download report |
43
- | `qs projects` | List projects |
44
- | `qs versions <project-id>` | List versions |
45
- | `qs credits` | Show credit balance |
46
- | `qs cancel <job-id>` | Cancel a running audit |
47
- | `qs logout` | Clear stored credentials |
48
-
49
- ## Environment Variables
50
-
51
- For CI/CD, set these instead of running `qs init`:
37
+ | `qs init` | Save API key + URL |
38
+ | `qs audit <git-url\|--zip\|--dir>` | Submit → quote → pay → start |
39
+ | `qs quote <version-id>` | Create a quote |
40
+ | `qs pay <quote-id>` | Pay quote and start |
41
+ | `qs wallet` / `qs topup <dollars>` | Balances / prepaid top-up |
42
+ | `qs orders` / `qs order <id>` | Payment history |
43
+ | `qs status` / `qs watch` / `qs cancel` | Job lifecycle |
44
+ | `qs findings` / `qs report` | Results |
45
+ | `qs projects` / `qs versions` | Inventory |
46
+ | `qs logout` | Clear credentials |
47
+
48
+ ## Environment
52
49
 
53
50
  ```bash
54
51
  export QUILLSHIELD_API_URL=https://api.quillaudits.ai
55
52
  export QUILLSHIELD_API_KEY=qs_live_xxxxxxxxxxxx
53
+ export QUILLSHIELD_ORG_ID=01… # optional
56
54
  ```
57
55
 
58
- ## Full Documentation
56
+ ## Payments
57
+
58
+ - Wallet/coupon covers quote → audit starts immediately.
59
+ - `MOCK_PAYMENTS=true` on the API → CLI mock-confirms (no browser).
60
+ - Live Stripe → prints/opens Checkout and polls until paid.
61
+ - Always pass **`--yes`** in CI.
62
+
63
+ ## Docs
59
64
 
60
- See [docs/CLI.md](https://github.com/quillai-network/quillshield-saas/blob/main/docs/CLI.md) for the complete user guide.
65
+ - [docs/CLI.md](../../docs/CLI.md) — full CLI guide
66
+ - [docs/MCP.md](../../docs/MCP.md) — Cursor / Claude
67
+ - [docs/README.md](../../docs/README.md) — developer index
68
+ - [Published CLI guide](https://www.quillaudits.com/quillshield/developers/cli-install-and-init)