@clawflarehub/cli
v0.0.1
Published
Marketplace to easily add Cloudflare Workers Service Bindings for OpenClaw
Maintainers
Readme
Clawflarehub CLI
A command-line tool for discovering and installing Cloudflare Workers service bindings for OpenClaw.
Installation
Global Install (Recommended)
# Install globally via npm
npm install -g @clawflarehub/cli
# Or via pnpm
pnpm add -g @clawflarehub/cli
# Or via yarn
yarn global add @clawflarehub/cliLocal Install
# Install as a dev dependency
npm install --save-dev @clawflarehub/cli
# Use with npx
npx clawflarehub --helpUsage
Search for Services
Search the marketplace for available services:
# Search by name, description, or tag
clawflarehub search twitter
clawflarehub search github
clawflarehub search api
# List all available services
clawflarehub searchGet Service Information
View detailed information about a service:
clawflarehub info twitter-client
clawflarehub info github-clientInstall a Service
Install a service binding to your Worker project:
# Install with default binding name
clawflarehub install twitter-client
# Install with custom binding name
clawflarehub install twitter-client --binding MY_TWITTERAfter installation:
- The service binding is added to your
wrangler.jsonc - TypeScript types are generated in
bindings.d.ts - Follow the instructions to set required secrets
List Installed Services
clawflarehub listRemove a Service
# Remove by binding name
clawflarehub remove TWITTER_CLIENTRequirements
- Node.js >= 18.0.0
- A Cloudflare Workers project with
wrangler.jsonc - An existing Cloudflare account
Commands
| Command | Description |
|---------|-------------|
| clawflarehub search [query] | Search for services |
| clawflarehub info <service-id> | Get service details |
| clawflarehub install <service-id> | Install a service |
| clawflarehub list | List installed services |
| clawflarehub remove <binding> | Remove a service |
Examples
Install and Use Twitter Client
# Search for Twitter service
clawflarehub search twitter
# Install it
clawflarehub install twitter-client
# Set required secrets
wrangler secret put TWITTER_AUTH_TOKEN
wrangler secret put TWITTER_CT0
# Install npm dependencies
pnpm add @steipete/birdIn your Worker code:
const tweets = await env.TWITTER.searchTwitter('harshil1712', 5);Development
# Clone the repository
git clone https://github.com/clawflarehub/cli.git
cd cli
# Install dependencies
pnpm install
# Build the CLI
pnpm build
# Run CLI locally
pnpm cli --helpPublishing
# Build before publishing
pnpm build
# Publish to npm
npm publishLicense
MIT
