sentron-cli 1.0.8 → 1.0.9
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 +38 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,11 +50,27 @@ sentron auth api-key list
|
|
|
50
50
|
sentron auth api-key revoke <id>
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
+
### OAuth Clients
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
# Create a new OAuth client (for ChatGPT, etc.)
|
|
57
|
+
sentron auth oauth-client create
|
|
58
|
+
|
|
59
|
+
# Create with name
|
|
60
|
+
sentron auth oauth-client create --name "ChatGPT Integration"
|
|
61
|
+
|
|
62
|
+
# List all OAuth clients
|
|
63
|
+
sentron auth oauth-client list
|
|
64
|
+
|
|
65
|
+
# Delete an OAuth client
|
|
66
|
+
sentron auth oauth-client delete <id>
|
|
67
|
+
```
|
|
68
|
+
|
|
53
69
|
### Metrics
|
|
54
70
|
|
|
55
71
|
```bash
|
|
56
72
|
# View usage summary
|
|
57
|
-
sentron metrics
|
|
73
|
+
sentron metrics summary
|
|
58
74
|
|
|
59
75
|
# View detailed metrics
|
|
60
76
|
sentron metrics get
|
|
@@ -63,17 +79,33 @@ sentron metrics get
|
|
|
63
79
|
sentron metrics get --days 7
|
|
64
80
|
|
|
65
81
|
# Output as JSON
|
|
66
|
-
sentron metrics --json
|
|
82
|
+
sentron metrics get --json
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Documentation
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
# Search across all documentation
|
|
89
|
+
sentron docs search <query>
|
|
90
|
+
|
|
91
|
+
# Search with JSON output
|
|
92
|
+
sentron docs search oauth --json
|
|
93
|
+
|
|
94
|
+
# Get full documentation by URL(s)
|
|
95
|
+
sentron docs get /docs/api/docs-search
|
|
96
|
+
|
|
97
|
+
# Get multiple documentation items
|
|
98
|
+
sentron docs get /docs/api/docs-search /docs/changelogs/2025/12/23/230000
|
|
99
|
+
|
|
100
|
+
# Output as JSON
|
|
101
|
+
sentron docs get /docs/api/docs-search --json
|
|
67
102
|
```
|
|
68
103
|
|
|
104
|
+
|
|
69
105
|
## Configuration
|
|
70
106
|
|
|
71
107
|
The CLI stores credentials in `~/.sentron/token`.
|
|
72
108
|
|
|
73
|
-
Environment variables:
|
|
74
|
-
- `SENTRON_API_URL` - Custom API URL (default: https://api.sentron.dev)
|
|
75
|
-
- `SENTRON_FRONTEND_URL` - Custom frontend URL (default: https://www.sentron.dev)
|
|
76
|
-
|
|
77
109
|
## Links
|
|
78
110
|
|
|
79
111
|
- Website: https://sentron.dev
|