/deploy command handles production deployment with comprehensive pre-flight checks, deployment execution, and verification. It ensures your application is ready for production before deploying.
Sub-commands
When to use this
Ready to ship
All tests pass and features are complete
After testing
You’ve verified everything works
Production releases
Deploying to live environment
Staging deploys
Testing in staging before production
Pre-deployment checklist
Before any deployment, the system verifies: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
Deployment flow
Output format
Successful deploy
Failed deploy
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 |
Usage examples
Related agents
- DevOps Engineer - Deployment and CI/CD expert
- Security Auditor - Pre-deployment security checks
