@telebort/question-banks-cli 1.0.0 → 1.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 -23
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
# @telebort/
|
|
1
|
+
# @telebort/question-banks-cli
|
|
2
2
|
|
|
3
|
-
CLI tool for the
|
|
3
|
+
CLI tool for the Question Banks API - authentication, API key management, usage tracking, and billing.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install -g @telebort/
|
|
8
|
+
npm install -g @telebort/question-banks-cli
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Quick Start
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
14
|
# Authenticate
|
|
15
|
-
|
|
15
|
+
question-banks login
|
|
16
16
|
|
|
17
17
|
# Check your account
|
|
18
|
-
|
|
18
|
+
question-banks whoami
|
|
19
19
|
|
|
20
20
|
# View usage
|
|
21
|
-
|
|
21
|
+
question-banks usage
|
|
22
22
|
|
|
23
23
|
# Manage API keys
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
question-banks api-keys list
|
|
25
|
+
question-banks api-keys create --name "Production" --mode live
|
|
26
26
|
|
|
27
27
|
# Manage billing
|
|
28
|
-
|
|
28
|
+
question-banks billing
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
## Commands
|
|
@@ -34,31 +34,31 @@ exit-tickets billing
|
|
|
34
34
|
|
|
35
35
|
| Command | Description |
|
|
36
36
|
|---------|-------------|
|
|
37
|
-
| `
|
|
38
|
-
| `
|
|
39
|
-
| `
|
|
37
|
+
| `question-banks login` | Authenticate with Question Banks API |
|
|
38
|
+
| `question-banks logout` | Clear local authentication tokens |
|
|
39
|
+
| `question-banks whoami` | Display current account information |
|
|
40
40
|
|
|
41
41
|
### API Keys
|
|
42
42
|
|
|
43
43
|
| Command | Description |
|
|
44
44
|
|---------|-------------|
|
|
45
|
-
| `
|
|
46
|
-
| `
|
|
47
|
-
| `
|
|
48
|
-
| `
|
|
45
|
+
| `question-banks api-keys list` | List all API keys |
|
|
46
|
+
| `question-banks api-keys create` | Create a new API key |
|
|
47
|
+
| `question-banks api-keys revoke <id>` | Revoke an API key |
|
|
48
|
+
| `question-banks api-keys rotate <id>` | Rotate an API key |
|
|
49
49
|
|
|
50
50
|
### Usage & Billing
|
|
51
51
|
|
|
52
52
|
| Command | Description |
|
|
53
53
|
|---------|-------------|
|
|
54
|
-
| `
|
|
55
|
-
| `
|
|
54
|
+
| `question-banks usage` | Display API usage statistics |
|
|
55
|
+
| `question-banks billing` | Open Stripe Customer Portal |
|
|
56
56
|
|
|
57
57
|
### Local Validation
|
|
58
58
|
|
|
59
59
|
| Command | Description |
|
|
60
60
|
|---------|-------------|
|
|
61
|
-
| `
|
|
61
|
+
| `question-banks validate <file>` | Validate a question JSON file locally |
|
|
62
62
|
|
|
63
63
|
## API Key Modes
|
|
64
64
|
|
|
@@ -67,7 +67,7 @@ exit-tickets billing
|
|
|
67
67
|
|
|
68
68
|
## Configuration
|
|
69
69
|
|
|
70
|
-
Configuration is stored in `~/.
|
|
70
|
+
Configuration is stored in `~/.question-banks/`:
|
|
71
71
|
|
|
72
72
|
- `tokens.json` - Authentication tokens (secure, 0600 permissions)
|
|
73
73
|
- `config.json` - User preferences
|
|
@@ -76,7 +76,7 @@ Configuration is stored in `~/.exit-tickets/`:
|
|
|
76
76
|
|
|
77
77
|
| Variable | Description |
|
|
78
78
|
|----------|-------------|
|
|
79
|
-
| `
|
|
79
|
+
| `QUESTION_BANKS_API_URL` | Override API base URL |
|
|
80
80
|
| `DEBUG` | Enable debug mode for verbose output |
|
|
81
81
|
|
|
82
82
|
## Pricing Tiers
|
|
@@ -90,8 +90,8 @@ Configuration is stored in `~/.exit-tickets/`:
|
|
|
90
90
|
|
|
91
91
|
## Documentation
|
|
92
92
|
|
|
93
|
-
- [SDK Documentation](https://docs.
|
|
94
|
-
- [API Reference](https://docs.
|
|
93
|
+
- [SDK Documentation](https://docs.question-banks.dev)
|
|
94
|
+
- [API Reference](https://docs.question-banks.dev/api)
|
|
95
95
|
|
|
96
96
|
## License
|
|
97
97
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telebort/question-banks-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "CLI tool for Question Banks API - authentication, API keys, usage, billing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@neondatabase/serverless": "^0.10.4",
|
|
29
|
-
"@telebort/question-banks": "^1.
|
|
29
|
+
"@telebort/question-banks": "^1.2.0",
|
|
30
30
|
"@upstash/ratelimit": "^2.0.5",
|
|
31
31
|
"@upstash/redis": "^1.34.3",
|
|
32
32
|
"@vercel/node": "^3.2.0",
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
},
|
|
58
58
|
"keywords": [
|
|
59
59
|
"question-banks",
|
|
60
|
-
"exit-tickets",
|
|
61
60
|
"cli",
|
|
62
61
|
"authentication",
|
|
63
62
|
"api-keys",
|