create-pratham-setup
v1.0.0
Published
One-time setup script: installs OpenClaw, @pratham7711/ui, sets up WhatsApp, and initialises the workspace
Maintainers
Readme
create-pratham-setup
One-command setup: installs OpenClaw, @pratham7711/ui, links WhatsApp, and initialises the workspace.
Usage
# Run directly (no install needed)
npx create-pratham-setup
# With npm token (for publishing packages)
NPM_TOKEN=your_token npx create-pratham-setup
# With your WhatsApp number pre-filled
npx create-pratham-setup --phone=+919871222770
# Skip parts you already have
npx create-pratham-setup --skip-onboard
npx create-pratham-setup --skip-whatsapp
# All options combined
NPM_TOKEN=your_token npx create-pratham-setup --phone=+919871222770What it does
| Step | Action |
|------|--------|
| 1 | Checks Node ≥ 22 + OS |
| 2 | Installs openclaw globally |
| 3 | Sets npm auth token (if NPM_TOKEN env provided) |
| 4 | Installs @pratham7711/ui into current project |
| 5 | Creates ~/.openclaw/workspace/ |
| 6 | Runs openclaw onboard --install-daemon (interactive wizard) |
| 7 | Runs openclaw channels login --channel whatsapp (QR code) |
Requirements
- Node ≥ 22
- macOS / Linux (Windows: use WSL2)
Using @pratham7711/ui after setup
// In main.tsx
import '@pratham7711/ui/styles'
// In any component
import { Button, Card, Badge, Nav, GlassPanel } from '@pratham7711/ui'Links
- npm: https://www.npmjs.com/package/create-pratham-setup
- @pratham7711/ui: https://www.npmjs.com/package/@pratham7711/ui
- OpenClaw docs: https://docs.openclaw.ai
