@magicblock-console/cli 0.1.1 → 0.1.3
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 +77 -0
- package/dist/index.js +0 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# @magicblock-console/cli
|
|
2
|
+
|
|
3
|
+
CLI for managing [MagicBlock Ephemeral Rollups](https://www.magicblock.gg/) on Solana. Full control over ER lifecycle, features, and monitoring from the terminal.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @magicblock-console/cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Authentication
|
|
12
|
+
|
|
13
|
+
Set your Solana keypair path:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
export MB_KEYPAIR_PATH=~/.config/solana/id.json
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Without a keypair, the CLI runs in **simulated mode** with realistic mock data.
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
### Projects
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
mb-console project create my-game --region us
|
|
27
|
+
mb-console project list
|
|
28
|
+
mb-console project configure my-game --gasless --vrf --privacy
|
|
29
|
+
mb-console project get my-game
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### ER Lifecycle
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
mb-console er delegate <address> --project my-game
|
|
36
|
+
mb-console er status <address>
|
|
37
|
+
mb-console er commit <address> --project my-game
|
|
38
|
+
mb-console er undelegate <address> --project my-game
|
|
39
|
+
mb-console er list --project my-game
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Features
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# VRF — verifiable randomness
|
|
46
|
+
mb-console vrf request --project my-game
|
|
47
|
+
|
|
48
|
+
# Privacy — confidential transfers via TEE
|
|
49
|
+
mb-console privacy deposit --token SOL --amount 1.0 --project my-game
|
|
50
|
+
mb-console privacy transfer --token SOL --amount 0.5 --to <wallet> --project my-game
|
|
51
|
+
mb-console privacy withdraw --token SOL --amount 0.5 --project my-game
|
|
52
|
+
|
|
53
|
+
# Cranks — scheduled execution
|
|
54
|
+
mb-console crank create --interval 5000 --iterations 100 --project my-game
|
|
55
|
+
mb-console crank list --project my-game
|
|
56
|
+
mb-console crank stop <crank_id>
|
|
57
|
+
|
|
58
|
+
# Oracle — price feeds
|
|
59
|
+
mb-console oracle price --feed SOL/USD --project my-game
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Monitoring
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
mb-console monitor status --project my-game
|
|
66
|
+
mb-console monitor logs --project my-game --limit 20
|
|
67
|
+
mb-console monitor costs --project my-game --period 30d
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Related Packages
|
|
71
|
+
|
|
72
|
+
- [`@magicblock-console/core`](https://www.npmjs.com/package/@magicblock-console/core) — Core SDK
|
|
73
|
+
- [`@magicblock-console/mcp`](https://www.npmjs.com/package/@magicblock-console/mcp) — AI agent interface (MCP Server)
|
|
74
|
+
|
|
75
|
+
## License
|
|
76
|
+
|
|
77
|
+
MIT
|
package/dist/index.js
CHANGED
|
File without changes
|