@clawdvault/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 +147 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# @clawdvault/cli
|
|
2
|
+
|
|
3
|
+
Command-line interface for [ClawdVault](https://clawdvault.com) - a pump.fun-style token launchpad on Solana.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @clawdvault/cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or use without installing:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx @clawdvault/cli tokens list
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Quick Start
|
|
18
|
+
|
|
19
|
+
### Setup Wallet
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Generate a new wallet
|
|
23
|
+
clawdvault wallet init
|
|
24
|
+
|
|
25
|
+
# Or use an existing Solana CLI wallet
|
|
26
|
+
export CLAWDVAULT_WALLET=~/.config/solana/id.json
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Read Operations (No Wallet Required)
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
# List featured tokens
|
|
33
|
+
clawdvault tokens list
|
|
34
|
+
|
|
35
|
+
# Get token details
|
|
36
|
+
clawdvault token get TOKEN_MINT_ADDRESS
|
|
37
|
+
|
|
38
|
+
# Get price quote
|
|
39
|
+
clawdvault trade quote -m TOKEN_MINT_ADDRESS -t buy -a 0.1
|
|
40
|
+
|
|
41
|
+
# Check SOL price
|
|
42
|
+
clawdvault wallet sol-price
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Write Operations (Wallet Required)
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
# Create a new token
|
|
49
|
+
clawdvault token create --name "My Token" --symbol "MYTOK" --image ./image.png
|
|
50
|
+
|
|
51
|
+
# Buy tokens
|
|
52
|
+
clawdvault trade buy --mint TOKEN_MINT_ADDRESS --sol 0.1
|
|
53
|
+
|
|
54
|
+
# Sell tokens (by amount)
|
|
55
|
+
clawdvault trade sell --mint TOKEN_MINT_ADDRESS --amount 1000000
|
|
56
|
+
|
|
57
|
+
# Sell by percentage
|
|
58
|
+
clawdvault trade sell --mint TOKEN_MINT_ADDRESS --percent 50
|
|
59
|
+
|
|
60
|
+
# Native SOL transfer
|
|
61
|
+
clawdvault wallet transfer --to RECIPIENT_ADDRESS --sol 0.5
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Wallet Operations
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
# Show wallet info
|
|
68
|
+
clawdvault wallet info
|
|
69
|
+
|
|
70
|
+
# Check SOL balance
|
|
71
|
+
clawdvault wallet sol-balance
|
|
72
|
+
|
|
73
|
+
# Check token balance
|
|
74
|
+
clawdvault wallet balance -m TOKEN_MINT_ADDRESS
|
|
75
|
+
|
|
76
|
+
# Get deposit address
|
|
77
|
+
clawdvault wallet address
|
|
78
|
+
|
|
79
|
+
# Request devnet SOL (devnet only)
|
|
80
|
+
clawdvault wallet airdrop --sol 1
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Configuration
|
|
84
|
+
|
|
85
|
+
### Environment Variables
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
# Wallet path
|
|
89
|
+
export CLAWDVAULT_WALLET=~/.config/solana/id.json
|
|
90
|
+
|
|
91
|
+
# Custom API endpoint
|
|
92
|
+
export CLAWDVAULT_API_URL=https://clawdvault.com/api
|
|
93
|
+
|
|
94
|
+
# Solana RPC (default: mainnet)
|
|
95
|
+
export SOLANA_RPC_URL=https://api.devnet.solana.com
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Global Options
|
|
99
|
+
|
|
100
|
+
All commands support:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
-w, --wallet <path> # Specify wallet file
|
|
104
|
+
--rpc <url> # Specify RPC endpoint
|
|
105
|
+
--json # Output as JSON
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Examples
|
|
109
|
+
|
|
110
|
+
### Create and Launch a Token
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
# 1. Generate wallet (first time only)
|
|
114
|
+
clawdvault wallet init
|
|
115
|
+
|
|
116
|
+
# 2. Check your address
|
|
117
|
+
clawdvault wallet address
|
|
118
|
+
|
|
119
|
+
# 3. Fund with SOL (or use airdrop on devnet)
|
|
120
|
+
clawdvault wallet airdrop --sol 2
|
|
121
|
+
|
|
122
|
+
# 4. Create token
|
|
123
|
+
clawdvault token create \
|
|
124
|
+
--name "Moon Shot" \
|
|
125
|
+
--symbol "MOON" \
|
|
126
|
+
--description "To the moon!" \
|
|
127
|
+
--image ./moon.png \
|
|
128
|
+
--twitter @moonshot \
|
|
129
|
+
--website https://moonshot.io
|
|
130
|
+
|
|
131
|
+
# 5. Check your token
|
|
132
|
+
clawdvault token get YOUR_TOKEN_MINT
|
|
133
|
+
|
|
134
|
+
# 6. Buy more (optional)
|
|
135
|
+
clawdvault trade buy --mint YOUR_TOKEN_MINT --sol 0.5
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## Network Support
|
|
139
|
+
|
|
140
|
+
- **Mainnet**: Production trading with real SOL
|
|
141
|
+
- **Devnet**: Free testing with faucet SOL
|
|
142
|
+
|
|
143
|
+
Use `--rpc https://api.devnet.solana.com` or set `SOLANA_RPC_URL` for devnet.
|
|
144
|
+
|
|
145
|
+
## License
|
|
146
|
+
|
|
147
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clawdvault/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "CLI for ClawdVault - Solana token launchpad",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"clean": "rm -rf dist"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@clawdvault/sdk": "^0.1.
|
|
18
|
+
"@clawdvault/sdk": "^0.1.1",
|
|
19
19
|
"@solana/spl-token": "^0.4.0",
|
|
20
20
|
"@solana/web3.js": "^1.91.0",
|
|
21
21
|
"bs58": "^5.0.0",
|