imtiajrex/appflare-skills/appflare-cli-deploy
Claude Code and agent skill by imtiajrex/appflare-skills
- community
Checking that the SKILL.md file is still in the repository.
Configure, generate, migrate and deploy Appflare projects on Cloudflare Workers. Covers appflare.config.ts (D1 database with query limits, KV, R2, Better Auth options, scheduler queue, realtime Durable Object, handler exclude globs, wranglerOverrides), the Bun CLI commands build, dev --watch, migrate --local/--remote/--preview, migrate:custom and add-admin, the generated wrangler.json bindings, secrets, ALLOWED_DOMAINS CORS and wrangler deploy. Use when setting up a new Appflare backend, adding Cloudflare bindings, fixing generation, migration or deploy errors, writing custom SQL migrations, creating an admin user or shipping to production.
Install
npx vskill@latest install imtiajrex/appflare-skills/appflare-cli-deploySKILL.md
The same SKILL.md was published earlier as imtiajrex/appflare-skills/appflare-cli-deploy.
Appflare CLI and deployment
Commands (run from the backend package, always with Bun)
Every command accepts -c <config path>.
Minimal config
New project checklist
- [ ]
bun add appflare hono zod drizzle-orm better-auth better-auth-cloudflare @hono/standard-validator - [ ]
bun add -d drizzle-kit wrangler typescript @better-auth/cli - [ ] Create resources:
bunx wrangler d1 create …,kv namespace create,r2 bucket create,queues create - [ ] Write
appflare.config.tswith the real ids, and setwranglerOverrides.main - [ ] Write
schema.tsand at least one handler undersrc/ - [ ]
bun appflare dev, thenbun appflare migrate --local, thenbunx wrangler dev - [ ] Add
_generated/to.gitignore, and commitdrizzle/
Production deploy checklist
- [ ]
bun appflare build - [ ]
bun appflare migrate --remote(review the SQL first) - [ ]
bunx wrangler secret put BETTER_AUTH_SECRET(plus any app secrets) - [ ] Set
wranglerOverrides.vars.ALLOWED_DOMAINSto a comma-separated list of origins - [ ]
bunx wrangler deploy - [ ] Optional:
bun appflare add-admin … --remote, then open/admin
Gotchas
- The config is validated strictly, so unknown keys fail. Don't annotate the object as
AppflareConfig, because that widens the client auth plugin types. - The generated
maindefaults to./src/index.ts. Override it with./_generated/server.js. wranglerOverridesmerges objects deeply, but arrays replace generated arrays (d1_databases,queues,routes…).- Only the first
database,kvandr2entries are used by the runtime and bymigrate. - Queue bindings are generated only when a
schedulerorcronhandler exists. Realtime Durable Object bindings are on by default. migrateregenerates artifacts itself before diffing, so it can't run against a stale schema. Pass one target flag only.- When
tsconfig.jsonexists andbuildis true, generation ends withtsc --build, so type errors fail the command. Use--no-buildto isolate generation problems. - With
ALLOWED_DOMAINSunset, CORS allows every origin with credentials. add-adminneeds Better Auth'sadmin()plugin (for theroleandbannedcolumns) and a migrated database.
References
- Read references/config-reference.md for every config option with its defaults, the full list of generated
wrangler.jsonbindings, and generated file names.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/appflare-cli-deploy/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/imtiajrex/appflare-skills/appflare-cli-deploy)