원클릭으로
blink-deploy
Build and deploy Blink apps to production. Preview vs production deploys, deploy pipeline, static site hosting.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Build and deploy Blink apps to production. Preview vs production deploys, deploy pipeline, static site hosting.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
OAuth connector system for 38+ third-party services. Execute API calls to Google, Notion, Slack, Discord, GitHub, Stripe, Jira, HubSpot, Salesforce, LinkedIn, and more.
End-to-end guide for building and shipping a Blink app. Project setup, SDK init, auth, database, backend, deploy, and custom domains. Index to all other skills.
Authentication with managed and headless modes. Social providers, email/password, magic links, RBAC.
Blink Claw agent management — managed AI agent hosting on Fly.io. List agents, check status, manage secrets. For autonomous agents, Telegram/Discord bots, and scheduled workflows.
AI Gateway for text generation, image generation/editing, video generation, text-to-speech, audio transcription, and AI phone calls. Unified access to 50+ models.
Database CRUD with automatic camelCase conversion. Create, list, update, delete, upsert, count, exists. Raw SQL via CLI. Boolean handling for SQLite.
| name | blink-deploy |
| description | Build and deploy Blink apps to production. Preview vs production deploys, deploy pipeline, static site hosting. |
blink_rollback — Restore a project to a previously saved version snapshot (use blink_versions_list to find version IDs).
Frontend deployment is done via CLI — blink deploy ./dist --prod. The MCP has no deploy tool because agents deploy using the CLI after building.
# Build your app
npm run build
# Deploy to production — always pass project ID explicitly to avoid "No project context" errors
blink deploy <project_id> ./dist --prod
# OR: link the project first, then deploy without ID
blink link <project_id>
blink deploy ./dist --prod
# After deploying, activate hosting (required to get a live URL)
# Use blink_hosting_activate MCP tool, or:
blink hosting activate <project_id> # if CLI has this command
# Preview deploy (temporary URL, no activation needed)
blink deploy <project_id> ./dist
# List saved version snapshots
blink versions list
# Restore a version snapshot (version rollback)
blink versions restore <version_id>
Blink has two separate hosting paths. Never call blink_hosting_activate after blink deploy.
blink deploy <project_id> ./dist --prod
# → live immediately at https://{project_slug}.blinkpowered.com
# → NO further steps needed. DO NOT call blink_hosting_activate.
The URL is printed by the CLI after deploy. blink_hosting_status may still show inactive — this is a display lag, the site IS live.
blink_hosting_activate # only for sandbox-based projects
# → triggers a fresh build from the Blink sandbox and deploys
Why you must not mix them:
blink_hosting_activate rebuilds from the Blink sandbox and overwrites the S3 files that blink deploy uploaded. Calling activate after a CLI deploy replaces your app with the Blink AI template.
| Scenario | Command | URL |
|---|---|---|
| App built externally (Vite/Next/React) | blink deploy <id> ./dist --prod | {slug}.blinkpowered.com |
| App built in Blink AI editor | blink_hosting_activate | {slug}.blinkpowered.com |
| Preview / test URL | blink deploy <id> ./dist (no --prod) | {id}.sites.blink.new |
1. npm run build → generates ./dist (or .next, out/, build/)
2. blink deploy ./dist → uploads to Blink hosting
3. URL printed → {projectId}.sites.blink.new (or custom domain)
| Flag | Behavior | URL |
|---|---|---|
| (none) | Preview deploy | Temporary preview URL |
--prod | Production deploy | {projectId}.sites.blink.new + custom domains |
# Preview — test before going live
blink deploy ./dist
# → https://preview-abc123.sites.blink.new
# Production — replaces live site
blink deploy ./dist --prod
# → https://{projectId}.sites.blink.new
| Framework | Build Command | Output Dir |
|---|---|---|
| React (Vite) | vite build | ./dist |
Next.js (output: 'export') | next build | ./out |
| Vue | vite build | ./dist |
| Svelte | vite build | ./build |
| Astro | astro build | ./dist |
| Plain HTML/CSS/JS | — | ./ |
For Next.js static export, ensure next.config.ts has output: 'export'.
Backend (Hono on CF Workers) has its own deploy command — see blink-backend skill.
blink backend deploy
# 1. Ensure env vars are set
# 2. Build
npm run build
# 3. Deploy frontend
blink deploy ./dist --prod
# 4. Deploy backend (if applicable)
blink backend deploy
# 5. Set up custom domain (optional)
blink domains add myapp.com
| Issue | Fix |
|---|---|
| Empty deploy | Check build output directory exists and has files |
| 404 after deploy | Verify correct output dir (dist/, out/, build/) |
| Env vars missing | Set secrets in project settings before build |
| Stale deploy | Ensure --prod flag for production updates |