@tokenomist-ai/tokenomist-cli 0.1.0 → 0.1.1
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 +50 -33
- package/dist/index.js +144 -78
- package/dist/index.js.map +1 -1
- package/dist/update-check.js +3 -3
- package/dist/update-check.js.map +1 -1
- package/package.json +3 -3
- package/scripts/postinstall.js +6 -19
- package/skills/tokenomist-allocation-breakdown/SKILL.md +8 -8
- package/skills/tokenomist-burn-buyback/SKILL.md +54 -14
- package/skills/tokenomist-emission-report/SKILL.md +41 -13
- package/skills/tokenomist-fundraising-lookup/SKILL.md +44 -17
- package/skills/tokenomist-token-overview/SKILL.md +28 -12
- package/skills/tokenomist-unlock-analysis/SKILL.md +59 -16
package/README.md
CHANGED
|
@@ -5,34 +5,43 @@
|
|
|
5
5
|
|
|
6
6
|
CLI tool for the [Tokenomist API](https://tokenomist.ai) — query token unlocks, emissions, fundraising, burns, and buybacks from the terminal.
|
|
7
7
|
|
|
8
|
-
## Quick Start
|
|
8
|
+
## Quick Start (Internal)
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
git clone https://github.com/tokenomist-ai/tokenomist-cli.git
|
|
12
|
+
cd tokenomist-cli
|
|
13
|
+
cp .env.example .env # then edit .env with your API key and base URL
|
|
14
|
+
npm install
|
|
15
|
+
npm run build
|
|
16
|
+
npm link
|
|
17
|
+
tok auth login
|
|
18
|
+
tok token list
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Installation
|
|
9
22
|
|
|
10
23
|
```bash
|
|
11
24
|
npm install -g @tokenomist-ai/tokenomist-cli
|
|
12
|
-
tokenomist auth login
|
|
13
|
-
tokenomist token list
|
|
14
25
|
```
|
|
15
26
|
|
|
16
|
-
Or
|
|
27
|
+
Or use without installing:
|
|
17
28
|
|
|
18
29
|
```bash
|
|
19
30
|
npx @tokenomist-ai/tokenomist-cli token list
|
|
20
31
|
```
|
|
21
32
|
|
|
22
|
-
> **Requirements:** Node.js 18+ and a Tokenomist API key — get one at [tokenomist.ai](https://tokenomist.ai).
|
|
23
|
-
|
|
24
33
|
## Authentication
|
|
25
34
|
|
|
26
35
|
Get an API key from [tokenomist.ai](https://tokenomist.ai) and configure it.
|
|
27
36
|
|
|
28
|
-
### `
|
|
37
|
+
### `tok auth login` (recommended)
|
|
29
38
|
|
|
30
39
|
```bash
|
|
31
|
-
|
|
40
|
+
tok auth login
|
|
32
41
|
# Enter your Tokenomist API key: ****
|
|
33
42
|
|
|
34
43
|
# Or pass directly:
|
|
35
|
-
|
|
44
|
+
tok auth login --api-key your-api-key
|
|
36
45
|
```
|
|
37
46
|
|
|
38
47
|
This stores your key in `~/.tokenomist/config.json` with restricted file permissions (`0600`).
|
|
@@ -40,7 +49,7 @@ This stores your key in `~/.tokenomist/config.json` with restricted file permiss
|
|
|
40
49
|
### Check auth status
|
|
41
50
|
|
|
42
51
|
```bash
|
|
43
|
-
|
|
52
|
+
tok auth status
|
|
44
53
|
# Source: ~/.tokenomist/config.json
|
|
45
54
|
# Key: tk-t****ab2f
|
|
46
55
|
```
|
|
@@ -48,7 +57,7 @@ tokenomist auth status
|
|
|
48
57
|
### Remove stored key
|
|
49
58
|
|
|
50
59
|
```bash
|
|
51
|
-
|
|
60
|
+
tok auth logout
|
|
52
61
|
```
|
|
53
62
|
|
|
54
63
|
### Alternative methods
|
|
@@ -65,7 +74,7 @@ TOKENOMIST_API_KEY=your-api-key
|
|
|
65
74
|
|
|
66
75
|
**CLI flag (per-command)**
|
|
67
76
|
```bash
|
|
68
|
-
|
|
77
|
+
tok token list --api-key your-api-key
|
|
69
78
|
```
|
|
70
79
|
|
|
71
80
|
### Resolution order
|
|
@@ -82,6 +91,16 @@ Tokenomist CLI ships with AI coding skills that let agents (Claude Code, Cursor,
|
|
|
82
91
|
npx skills add tokenomist-ai/tokenomist-cli
|
|
83
92
|
```
|
|
84
93
|
|
|
94
|
+
### Install skills locally (after cloning)
|
|
95
|
+
|
|
96
|
+
If you've cloned the repo for development, install skills from your local copy:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
npx skills add .
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
This reads the skill definitions from the local `.agents/skills/` directory instead of fetching from the registry.
|
|
103
|
+
|
|
85
104
|
### Available skills
|
|
86
105
|
|
|
87
106
|
| Skill | Description |
|
|
@@ -97,52 +116,52 @@ npx skills add tokenomist-ai/tokenomist-cli
|
|
|
97
116
|
|
|
98
117
|
### Token list
|
|
99
118
|
```bash
|
|
100
|
-
|
|
101
|
-
|
|
119
|
+
tok token list
|
|
120
|
+
tok token list --output csv
|
|
102
121
|
```
|
|
103
122
|
|
|
104
123
|
### Unlock events
|
|
105
124
|
```bash
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
125
|
+
tok unlock list
|
|
126
|
+
tok unlock list --min-market-cap 1000000
|
|
127
|
+
tok unlock upcoming
|
|
128
|
+
tok unlock events solana --start 2024-01-01 --end 2024-12-31
|
|
110
129
|
```
|
|
111
130
|
|
|
112
131
|
### Investors
|
|
113
132
|
```bash
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
133
|
+
tok investor list
|
|
134
|
+
tok investor detail <investorId>
|
|
135
|
+
tok investor detail <investorId> --is-lead-investor
|
|
117
136
|
```
|
|
118
137
|
|
|
119
138
|
### Fundraising
|
|
120
139
|
```bash
|
|
121
|
-
|
|
122
|
-
|
|
140
|
+
tok fundraising detail solana
|
|
141
|
+
tok fundraising detail solana --output json
|
|
123
142
|
```
|
|
124
143
|
|
|
125
144
|
### Burns
|
|
126
145
|
```bash
|
|
127
|
-
|
|
128
|
-
|
|
146
|
+
tok burn list
|
|
147
|
+
tok burn detail solana --start 2024-01-01
|
|
129
148
|
```
|
|
130
149
|
|
|
131
150
|
### Buybacks
|
|
132
151
|
```bash
|
|
133
|
-
|
|
134
|
-
|
|
152
|
+
tok buyback list
|
|
153
|
+
tok buyback detail solana
|
|
135
154
|
```
|
|
136
155
|
|
|
137
156
|
### Emissions
|
|
138
157
|
```bash
|
|
139
|
-
|
|
140
|
-
|
|
158
|
+
tok emission daily solana
|
|
159
|
+
tok emission weekly solana --start 2024-01-01 --end 2024-06-30
|
|
141
160
|
```
|
|
142
161
|
|
|
143
162
|
### Allocations
|
|
144
163
|
```bash
|
|
145
|
-
|
|
164
|
+
tok allocation detail solana
|
|
146
165
|
```
|
|
147
166
|
|
|
148
167
|
## Global Options
|
|
@@ -166,11 +185,9 @@ npm test
|
|
|
166
185
|
|
|
167
186
|
# Link for local testing
|
|
168
187
|
npm link
|
|
169
|
-
|
|
188
|
+
tok --help
|
|
170
189
|
```
|
|
171
190
|
|
|
172
|
-
See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on filing issues and submitting pull requests.
|
|
173
|
-
|
|
174
191
|
## License
|
|
175
192
|
|
|
176
193
|
[MIT](LICENSE)
|