graphstore-cli
Advanced tools
+2
-2
@@ -83,4 +83,4 @@ #!/usr/bin/env node | ||
| graph.command("keys <id>").action(async (id) => print(await request(`/account/graphs/${id}/keys`), { json: p.opts().json })); | ||
| graph.command("key-create <id> <name>").option("--scopes <scopes>", "comma separated", "graph:read,graph:write").action(async (id, name, o) => { | ||
| const result = await request(`/account/graphs/${id}/keys`, { method: "POST", body: { name, scopes: o.scopes.split(",") } }); | ||
| graph.command("key-create <id> <name>").option("--scopes <scopes>", "comma separated", "graph:read,graph:write").option("--rate <requests>", "requests per second", "100").option("--origin <origins...>", "allowed browser origins").action(async (id, name, o) => { | ||
| const result = await request(`/account/graphs/${id}/keys`, { method: "POST", body: { name, scopes: o.scopes.split(","), rate_limit_per_second: Number(o.rate), allowed_origins: o.origin || [] } }); | ||
| const c = await config(); | ||
@@ -87,0 +87,0 @@ c.apiKey = result.key; |
+1
-1
| { | ||
| "name": "graphstore-cli", | ||
| "version": "0.1.1", | ||
| "version": "0.1.2", | ||
| "description": "CLI for the Graphstore agent-first graph database", | ||
@@ -5,0 +5,0 @@ "type": "module", |
13801
1.39%