@dino-hq/cli 0.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/LICENSE +21 -0
- package/README.md +63 -0
- package/dist/bin.js +1384 -0
- package/package.json +58 -0
- package/schema.json +85 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Dino HQ
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# @dino-hq/cli
|
|
2
|
+
|
|
3
|
+
AI-powered API quality scanner. Test, document, and diff your GraphQL APIs from the command line.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @dino-hq/cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# Scan your API for issues
|
|
15
|
+
dino scan --tenant my-tenant
|
|
16
|
+
|
|
17
|
+
# Generate API documentation
|
|
18
|
+
dino docs --tenant my-tenant --output api-docs.md
|
|
19
|
+
|
|
20
|
+
# Detect breaking changes
|
|
21
|
+
dino diff --tenant my-tenant --fail-on-breaking
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Commands
|
|
25
|
+
|
|
26
|
+
| Command | Description |
|
|
27
|
+
|---------|-------------|
|
|
28
|
+
| `dino scan` | Run the full test pipeline — fuzzing, validation, RBAC, rate limits, error codes, deprecation |
|
|
29
|
+
| `dino docs` | Generate API documentation from live introspection |
|
|
30
|
+
| `dino diff` | Compare current schema against a saved snapshot, detect breaking changes |
|
|
31
|
+
|
|
32
|
+
## Key Flags
|
|
33
|
+
|
|
34
|
+
| Flag | Commands | Description |
|
|
35
|
+
|------|----------|-------------|
|
|
36
|
+
| `--tenant <id>` | all | Tenant configuration to use (required) |
|
|
37
|
+
| `--env <name>` | all | Target environment (default: tenant's default) |
|
|
38
|
+
| `--format <type>` | all | Output format: `markdown` or `json` |
|
|
39
|
+
| `--quiet` | all | Suppress non-essential output |
|
|
40
|
+
| `--tools <list>` | scan | Comma-separated tools to run |
|
|
41
|
+
| `--reasoning` | scan | Enable AI reasoning (requires `DINO_AI_KEY`) |
|
|
42
|
+
| `--output <path>` | docs | Write output to file instead of stdout |
|
|
43
|
+
| `--fail-on-breaking` | diff | Exit with code 1 if breaking changes found |
|
|
44
|
+
|
|
45
|
+
## Configuration
|
|
46
|
+
|
|
47
|
+
Create a `.dino.yml` in your project root:
|
|
48
|
+
|
|
49
|
+
```yaml
|
|
50
|
+
tenant: my-tenant
|
|
51
|
+
environment: production
|
|
52
|
+
format: markdown
|
|
53
|
+
snapshotDir: .dino/snapshots
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Tiers
|
|
57
|
+
|
|
58
|
+
- **Free**: Local scans + local file export
|
|
59
|
+
- **Pro**: AI reasoning, hosted portal, watch mode (`DINO_AI_KEY` required)
|
|
60
|
+
|
|
61
|
+
## License
|
|
62
|
+
|
|
63
|
+
MIT
|