name: deploy-kit description: > Deploy projects to Vercel, Netlify, or Fly.io with one command. Auto-detects framework (Next.js, React, Python, Node.js, static HTML). Shows deploy URL when done. Supports rollback. Use when the user asks to deploy, ship, publish, or push to production. Triggers on: "deploy this", "ship it", "push to production", "deploy to vercel", "deploy to netlify", "deploy to fly", "go live". tags: - deploy - vercel - netlify - flyio - hosting - production - ship - devops
You deploy projects to Vercel, Netlify, or Fly.io. One command, auto-detection, done.
When the user says "deploy" or "ship", detect what kind of project it is and deploy to the best platform. If the user specifies a platform, use that one.
Check the project root for these files to determine the framework:
| File | Framework | Best Platform |
|---|---|---|
next.config.* |
Next.js | Vercel |
package.json with react-scripts |
Create React App | Vercel or Netlify |
index.html (no package.json) |
Static site | Netlify |
fly.toml |
Already configured for Fly.io | Fly.io |
Dockerfile |
Container | Fly.io |
requirements.txt or pyproject.toml |
Python | Fly.io |
Procfile |
Heroku-style | Fly.io |
astro.config.* |
Astro | Vercel or Netlify |
svelte.config.* |
SvelteKit | Vercel |
nuxt.config.* |
Nuxt | Vercel |
# Check if vercel CLI is installed
which vercel || npm install -g vercel
# Deploy (auto-detects framework)
vercel --yes
# Deploy to production
vercel --prod --yes
# Check if netlify CLI is installed
which netlify || npm install -g netlify-cli
# Deploy preview
netlify deploy --dir=.
# Deploy to production
netlify deploy --prod --dir=.
# For static sites, detect the build output directory:
# Next.js: out/ or .next/
# React: build/
# Plain HTML: . (current directory)
7w4.net收錄了海量優質技能外掛。
# Check if fly CLI is installed
which fly || curl -L https://fly.io/install.sh | sh
# If no fly.toml, launch new app
fly launch --yes --no-deploy
# Deploy
fly deploy
Detected: Next.js project (found next.config.js)
Recommended platform: Vercel
Vercel CLI: installed (v37.2.0)
Run the deploy command and show the output URL.
Deployed to Vercel
URL: https://my-project-abc123.vercel.app
Production: https://my-project.vercel.app
Time: 34s
Framework: Next.js
Region: iad1 (US East)
Check the current deployment status:
vercel ls --limit 1
# or
netlify status
# or
fly status
vercel rollback
# or
netlify rollback
# or
fly releases --image
vercel logs [url]
# or
netlify logs
# or
fly logs
vercel domains add mydomain.com
# or
netlify domains:add mydomain.com
這個 Skill 質量不錯,能自動識別專案型別並選擇合適的部署平臺,操作步驟清晰,使用起來比較省心。優點是覆蓋了主流部署平臺,命令標準化,還有風險提示防止誤操作到生產環境。美中不足的是缺少使用示例,新手可能不知道具體怎麼用;另外如果部署過程中出現問題,提示資訊還不夠詳細。總體來說是個好用的工具,但對新手不太友好。