| name | deploy |
| description | Production deployment with pre-flight checks and verification. Use when: "deploy", "ship", "release", "go live", "push to prod", "publish", "launch"
|
| argument-hint | [check|preview|production|rollback] |
| user-invocable | true |
| disable-model-invocation | true |
/deploy - Production Deployment
$ARGUMENTS
Purpose
This command handles production deployment with pre-flight checks, deployment execution, and verification.
Sub-commands
/deploy - Interactive deployment wizard
/deploy check - Run pre-deployment checks only
/deploy preview - Deploy to preview/staging
/deploy production - Deploy to production
/deploy rollback - Rollback to previous version
Pre-Deployment Checklist
Before any deployment:
## ๐ Pre-Deploy Checklist
### Code Quality
- [ ] No TypeScript errors (`npx tsc --noEmit`)
- [ ] ESLint passing (`npx eslint .`)
- [ ] All tests passing (`npm test`)
### Security
- [ ] No hardcoded secrets
- [ ] Environment variables documented
- [ ] Dependencies audited (`npm audit`)
### Performance
- [ ] Bundle size acceptable
- [ ] No console.log statements
- [ ] Images optimized
### Documentation
- [ ] README updated
- [ ] CHANGELOG updated
- [ ] API docs current
### Ready to deploy? (y/n)
Deployment Flow
โโโโโโโโโโโโโโโโโโโ
โ /deploy โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ Pre-flight โ
โ checks โ
โโโโโโโโโโฌโโโโโโโโโ
โ
Pass? โโNoโโโบ Fix issues
โ
Yes
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ Build โ
โ application โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ Deploy to โ
โ platform โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ Health check โ
โ & verify โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ โ
Complete โ
โโโโโโโโโโโโโโโโโโโ
Output Format
Successful Deploy
## ๐ Deployment Complete
### Summary
- **Version:** v1.2.3
- **Environment:** production
- **Duration:** 47 seconds
- **Platform:** Vercel
### URLs
- ๐ Production: https://app.example.com
- ๐ Dashboard: https://vercel.com/project
### What Changed
- Added user profile feature
- Fixed login bug
- Updated dependencies
### Health Check
โ
API responding (200 OK)
โ
Database connected
โ
All services healthy
Failed Deploy
## โ Deployment Failed
### Error
Build failed at step: TypeScript compilation
### Details
error TS2345: Argument of type 'string' is not assignable...
### Resolution
1. Fix TypeScript error in `src/services/user.ts:45`
2. Run `npm run build` locally to verify
3. Try `/deploy` again
### Rollback Available
Previous version (v1.2.2) is still active.
Run `/deploy rollback` if needed.
Platform Support
| Platform | Command | Notes |
|---|
| Vercel | vercel --prod | Auto-detected for Next.js |
| Railway | railway up | Needs Railway CLI |
| Fly.io | fly deploy | Needs flyctl |
| Docker | docker compose up -d | For self-hosted |
Examples
/deploy
/deploy check
/deploy preview
/deploy production --skip-tests
/deploy rollback