clawcloud 1.0.0 → 1.1.0
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/CLI_PUBLISHING_GUIDE.md +325 -0
- package/README.md +253 -118
- package/index.js +637 -0
- package/package.json +18 -35
- package/bin/clawcloud.js +0 -158
- package/src/api/agents.js +0 -22
- package/src/api/vms.js +0 -23
- package/src/api/wallet.js +0 -21
- package/src/commands/balance.js +0 -27
- package/src/commands/buy.js +0 -8
- package/src/commands/configure.js +0 -86
- package/src/commands/export.js +0 -203
- package/src/commands/fund.js +0 -13
- package/src/commands/interactive.js +0 -70
- package/src/commands/list.js +0 -87
- package/src/commands/nfts.js +0 -5
- package/src/commands/register.js +0 -72
- package/src/commands/ssh.js +0 -5
- package/src/commands/status.js +0 -5
- package/src/commands/terminate.js +0 -5
- package/src/commands/transfer.js +0 -5
- package/src/utils/banner.js +0 -9
- package/src/utils/config.js +0 -75
- package/src/utils/help.js +0 -85
- package/src/utils/version.js +0 -15
- package/templates/SKILL.md +0 -215
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
# 📦 ClawCloud CLI - Publishing Guide
|
|
2
|
+
|
|
3
|
+
## 🎯 Publishing to NPM
|
|
4
|
+
|
|
5
|
+
### Prerequisites
|
|
6
|
+
|
|
7
|
+
1. **NPM Account**
|
|
8
|
+
- Create at: https://www.npmjs.com/signup
|
|
9
|
+
- Login: `npm login`
|
|
10
|
+
|
|
11
|
+
2. **Package Name**
|
|
12
|
+
- Check availability: `npm search clawcloud`
|
|
13
|
+
- Current name: `clawcloud`
|
|
14
|
+
- If taken, use: `@yourname/clawcloud` or `clawcloud-cli`
|
|
15
|
+
|
|
16
|
+
### File Structure
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
clawcloud-cli/
|
|
20
|
+
├── index.js # Main CLI file (rename from clawcloud-cli.js)
|
|
21
|
+
├── package.json # Package config (rename from cli-package.json)
|
|
22
|
+
├── README.md # Documentation (rename from CLI_README.md)
|
|
23
|
+
├── LICENSE # MIT License
|
|
24
|
+
└── .npmignore # Files to exclude
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Setup Steps
|
|
28
|
+
|
|
29
|
+
#### 1. Create Project Directory
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
mkdir clawcloud-cli
|
|
33
|
+
cd clawcloud-cli
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
#### 2. Add Files
|
|
37
|
+
|
|
38
|
+
**Copy these files:**
|
|
39
|
+
- `clawcloud-cli.js` → `index.js`
|
|
40
|
+
- `cli-package.json` → `package.json`
|
|
41
|
+
- `CLI_README.md` → `README.md`
|
|
42
|
+
|
|
43
|
+
**Make index.js executable:**
|
|
44
|
+
```bash
|
|
45
|
+
chmod +x index.js
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
#### 3. Create .npmignore
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
cat > .npmignore << 'EOF'
|
|
52
|
+
# Development
|
|
53
|
+
.git
|
|
54
|
+
.gitignore
|
|
55
|
+
.DS_Store
|
|
56
|
+
node_modules/
|
|
57
|
+
|
|
58
|
+
# Testing
|
|
59
|
+
test/
|
|
60
|
+
*.test.js
|
|
61
|
+
|
|
62
|
+
# CI/CD
|
|
63
|
+
.github/
|
|
64
|
+
.gitlab-ci.yml
|
|
65
|
+
|
|
66
|
+
# Documentation (keep README.md!)
|
|
67
|
+
docs/
|
|
68
|
+
examples/
|
|
69
|
+
|
|
70
|
+
# Logs
|
|
71
|
+
*.log
|
|
72
|
+
npm-debug.log*
|
|
73
|
+
EOF
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
#### 4. Create LICENSE
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
cat > LICENSE << 'EOF'
|
|
80
|
+
MIT License
|
|
81
|
+
|
|
82
|
+
Copyright (c) 2026 ClawCloud
|
|
83
|
+
|
|
84
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
85
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
86
|
+
in the Software without restriction, including without limitation the rights
|
|
87
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
88
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
89
|
+
furnished to do so, subject to the following conditions:
|
|
90
|
+
|
|
91
|
+
The above copyright notice and this permission notice shall be included in all
|
|
92
|
+
copies or substantial portions of the Software.
|
|
93
|
+
|
|
94
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
95
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
96
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
97
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
98
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
99
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
100
|
+
SOFTWARE.
|
|
101
|
+
EOF
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
#### 5. Install Dependencies
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
npm install ethers
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
#### 6. Test Locally
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
# Link package locally
|
|
114
|
+
npm link
|
|
115
|
+
|
|
116
|
+
# Test commands
|
|
117
|
+
clawcloud help
|
|
118
|
+
clawcloud tiers
|
|
119
|
+
clawcloud info
|
|
120
|
+
|
|
121
|
+
# Unlink when done testing
|
|
122
|
+
npm unlink -g clawcloud
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Publishing
|
|
126
|
+
|
|
127
|
+
#### First Time Publish
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
# Login to npm
|
|
131
|
+
npm login
|
|
132
|
+
|
|
133
|
+
# Check package details
|
|
134
|
+
npm pack --dry-run
|
|
135
|
+
|
|
136
|
+
# Publish to npm
|
|
137
|
+
npm publish
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
#### Update Package
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
# Update version in package.json
|
|
144
|
+
npm version patch # 1.0.0 → 1.0.1
|
|
145
|
+
npm version minor # 1.0.0 → 1.1.0
|
|
146
|
+
npm version major # 1.0.0 → 2.0.0
|
|
147
|
+
|
|
148
|
+
# Publish update
|
|
149
|
+
npm publish
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Scoped Package (If name is taken)
|
|
153
|
+
|
|
154
|
+
If `clawcloud` is already taken, use a scoped package:
|
|
155
|
+
|
|
156
|
+
**Update package.json:**
|
|
157
|
+
```json
|
|
158
|
+
{
|
|
159
|
+
"name": "@yourname/clawcloud",
|
|
160
|
+
...
|
|
161
|
+
}
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
**Publish as public:**
|
|
165
|
+
```bash
|
|
166
|
+
npm publish --access public
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
**Users install with:**
|
|
170
|
+
```bash
|
|
171
|
+
npx @yourname/clawcloud tiers
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## 🚀 Alternative: GitHub Release
|
|
177
|
+
|
|
178
|
+
### Setup GitHub Repository
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
# Initialize git
|
|
182
|
+
git init
|
|
183
|
+
git add .
|
|
184
|
+
git commit -m "Initial commit: ClawCloud CLI v1.0.0"
|
|
185
|
+
|
|
186
|
+
# Create repo on GitHub
|
|
187
|
+
# Then push
|
|
188
|
+
git remote add origin https://github.com/yourusername/clawcloud-cli.git
|
|
189
|
+
git branch -M main
|
|
190
|
+
git push -u origin main
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Users can install from GitHub:
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
npx github:yourusername/clawcloud-cli tiers
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## ✅ Post-Publishing Checklist
|
|
202
|
+
|
|
203
|
+
- [ ] Test installation: `npx clawcloud@latest help`
|
|
204
|
+
- [ ] Update README with correct install command
|
|
205
|
+
- [ ] Create GitHub release
|
|
206
|
+
- [ ] Tweet about launch
|
|
207
|
+
- [ ] Add to Package Manager pages (npms.io, npm.io)
|
|
208
|
+
- [ ] Create demo video/GIF
|
|
209
|
+
- [ ] Write launch blog post
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## 📊 Package Stats
|
|
214
|
+
|
|
215
|
+
After publishing, monitor:
|
|
216
|
+
- **npm page:** https://www.npmjs.com/package/clawcloud
|
|
217
|
+
- **Download stats:** https://npmtrends.com/clawcloud
|
|
218
|
+
- **Bundle size:** https://bundlephobia.com/package/clawcloud
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## 🔄 Update Workflow
|
|
223
|
+
|
|
224
|
+
1. Make changes to code
|
|
225
|
+
2. Test locally with `npm link`
|
|
226
|
+
3. Update version: `npm version patch`
|
|
227
|
+
4. Commit: `git commit -am "v1.0.1: Fixed bug"`
|
|
228
|
+
5. Tag: `git tag v1.0.1`
|
|
229
|
+
6. Push: `git push && git push --tags`
|
|
230
|
+
7. Publish: `npm publish`
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
## 🐛 Troubleshooting
|
|
235
|
+
|
|
236
|
+
### "Package name taken"
|
|
237
|
+
Use scoped package: `@yourname/clawcloud`
|
|
238
|
+
|
|
239
|
+
### "Authentication required"
|
|
240
|
+
Run: `npm login`
|
|
241
|
+
|
|
242
|
+
### "Permission denied"
|
|
243
|
+
Make index.js executable: `chmod +x index.js`
|
|
244
|
+
|
|
245
|
+
### "Module not found"
|
|
246
|
+
Install deps: `npm install`
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
## 🎯 Marketing
|
|
251
|
+
|
|
252
|
+
### Announcement Template
|
|
253
|
+
|
|
254
|
+
**Twitter:**
|
|
255
|
+
```
|
|
256
|
+
🦞 ClawCloud CLI is live!
|
|
257
|
+
|
|
258
|
+
Purchase VMs with crypto, no KYC, instant provisioning.
|
|
259
|
+
|
|
260
|
+
$ npx clawcloud purchase
|
|
261
|
+
|
|
262
|
+
✅ 8 GPU/CPU tiers
|
|
263
|
+
✅ Pay with USDC on Base
|
|
264
|
+
✅ Own as NFTs
|
|
265
|
+
✅ SSH access in 2 mins
|
|
266
|
+
|
|
267
|
+
Try it: npx clawcloud tiers
|
|
268
|
+
|
|
269
|
+
Built for autonomous AI agents 🤖
|
|
270
|
+
|
|
271
|
+
#Web3 #AI #Base
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
**Reddit (r/ethdev, r/cryptocurrency):**
|
|
275
|
+
```
|
|
276
|
+
Title: I built a CLI to rent cloud VMs with cryptocurrency (no KYC)
|
|
277
|
+
|
|
278
|
+
I created ClawCloud - a decentralized cloud infrastructure marketplace where
|
|
279
|
+
you can purchase VMs with USDC on Base and get instant SSH access.
|
|
280
|
+
|
|
281
|
+
Key features:
|
|
282
|
+
- 8 tiers from basic CPU to H100 GPUs
|
|
283
|
+
- Payment in USDC (no credit card needed)
|
|
284
|
+
- Ownership via ERC-721 NFTs
|
|
285
|
+
- Auto-provisioning in 2-3 minutes
|
|
286
|
+
- Simple CLI: npx clawcloud purchase
|
|
287
|
+
|
|
288
|
+
Built specifically for AI agents but anyone can use it!
|
|
289
|
+
|
|
290
|
+
Try it: npx clawcloud tiers
|
|
291
|
+
Docs: https://docs.clawcloud.co
|
|
292
|
+
|
|
293
|
+
Would love feedback!
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
### Product Hunt Launch
|
|
297
|
+
|
|
298
|
+
- **Tagline:** "Cloud VMs you can buy with crypto, no KYC required"
|
|
299
|
+
- **Description:** See README.md intro
|
|
300
|
+
- **First Comment:** Usage examples
|
|
301
|
+
- **Demo:** Video showing purchase flow
|
|
302
|
+
|
|
303
|
+
---
|
|
304
|
+
|
|
305
|
+
## 📈 Growth Strategy
|
|
306
|
+
|
|
307
|
+
1. **Week 1:** Launch on Twitter, Reddit, Product Hunt
|
|
308
|
+
2. **Week 2:** Submit to:
|
|
309
|
+
- https://npm.io
|
|
310
|
+
- https://openbase.com
|
|
311
|
+
- https://console.dev
|
|
312
|
+
3. **Week 3:** Integration guides:
|
|
313
|
+
- LangChain tools
|
|
314
|
+
- AutoGPT plugins
|
|
315
|
+
- n8n nodes
|
|
316
|
+
4. **Week 4:** Community:
|
|
317
|
+
- Discord server
|
|
318
|
+
- Video tutorials
|
|
319
|
+
- Case studies
|
|
320
|
+
|
|
321
|
+
---
|
|
322
|
+
|
|
323
|
+
**Ready to launch!** 🚀
|
|
324
|
+
|
|
325
|
+
Next command: `npm publish`
|