@kinosec/cli 0.1.3 → 0.2.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 +23 -19
- package/dist/cli.js +461 -108
- package/dist/cli.js.map +1 -1
- package/package.json +21 -6
package/README.md
CHANGED
|
@@ -25,22 +25,25 @@ See [docs/install.md](docs/install.md) for all installation methods.
|
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
27
|
# Authenticate with a Personal Access Token
|
|
28
|
-
|
|
28
|
+
kinosec auth login
|
|
29
29
|
|
|
30
30
|
# List your assets
|
|
31
|
-
|
|
31
|
+
kinosec asset list
|
|
32
32
|
|
|
33
33
|
# Run a quick pentest
|
|
34
|
-
|
|
34
|
+
kinosec scan create --asset <id> --mode quick
|
|
35
35
|
|
|
36
36
|
# Watch progress in real-time
|
|
37
|
-
|
|
37
|
+
kinosec scan watch <scan-id>
|
|
38
|
+
|
|
39
|
+
# Schedule a weekly scan
|
|
40
|
+
kinosec scan schedule create --asset <id> --pattern weekly --day-of-week 1 --time 09:00
|
|
38
41
|
|
|
39
42
|
# View findings
|
|
40
|
-
|
|
43
|
+
kinosec finding list --scan <scan-id>
|
|
41
44
|
|
|
42
45
|
# Export a report
|
|
43
|
-
|
|
46
|
+
kinosec report export --scan <report-id> --format markdown > report.md
|
|
44
47
|
```
|
|
45
48
|
|
|
46
49
|
See [docs/quickstart.md](docs/quickstart.md) for a full walkthrough.
|
|
@@ -48,15 +51,16 @@ See [docs/quickstart.md](docs/quickstart.md) for a full walkthrough.
|
|
|
48
51
|
## Commands
|
|
49
52
|
|
|
50
53
|
```
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
kinosec auth login|status|logout Manage authentication
|
|
55
|
+
kinosec config set|get|list Manage CLI configuration
|
|
56
|
+
kinosec me Show authenticated user info
|
|
57
|
+
|
|
58
|
+
kinosec asset list|get|create|delete|verify Manage assets
|
|
59
|
+
kinosec scan list|get|create|cancel|watch Manage security scans
|
|
60
|
+
kinosec scan schedule create|list|get|... Schedule recurring scans
|
|
61
|
+
kinosec finding list|get|update|retest Manage findings
|
|
62
|
+
kinosec report list|get|export Manage reports
|
|
63
|
+
kinosec token list|create|revoke Manage API tokens
|
|
60
64
|
```
|
|
61
65
|
|
|
62
66
|
Every command supports `--json` for machine-readable output and `--help` for usage details.
|
|
@@ -69,24 +73,24 @@ The CLI authenticates via Personal Access Tokens (PATs). Tokens are resolved in
|
|
|
69
73
|
|
|
70
74
|
1. `--token` flag
|
|
71
75
|
2. `KINOSEC_TOKEN` environment variable
|
|
72
|
-
3. `~/.config/kinosec/credentials.json` (saved by `
|
|
76
|
+
3. `~/.config/kinosec/credentials.json` (saved by `kinosec auth login`)
|
|
73
77
|
|
|
74
78
|
See [docs/authentication.md](docs/authentication.md) for details.
|
|
75
79
|
|
|
76
80
|
## Example
|
|
77
81
|
|
|
78
82
|
```bash
|
|
79
|
-
$
|
|
83
|
+
$ kinosec auth login
|
|
80
84
|
Paste your API token: ****
|
|
81
85
|
✓ Authenticated as you@example.com
|
|
82
86
|
Plan: security_pro (pro)
|
|
83
87
|
Org: Acme Inc
|
|
84
88
|
|
|
85
|
-
$
|
|
89
|
+
$ kinosec scan list
|
|
86
90
|
ID Target Mode Status Created
|
|
87
91
|
bc6b13bc-1234-5678-9abc-def012345678 example.com quick Completed 5/1/2026
|
|
88
92
|
|
|
89
|
-
$
|
|
93
|
+
$ kinosec finding list --scan bc6b13bc-1234-5678-9abc-def012345678
|
|
90
94
|
ID Name Severity Status Phase
|
|
91
95
|
f1a2b3c4-... SQL Injection Critical open active_scan
|
|
92
96
|
```
|