Skip to content
Development
Command

/deploy

Deploy safely with multi-gate pipeline — test → build → stage → verify → production

From plugin
cm
5311 skills8 agents11 commands3 hooks
+1
Install
> /plugin marketplace add tody-agent/codymaster
> /plugin install cm@codymaster

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/deploy

Context preview

What this command does when you run it.

Deploy safely with multi-gate pipeline — test → build → stage → verify → production

Command definition

deploy.md
description: Deploy safely with multi-gate pipeline — test → build → stage → verify → production
argument-hint: "[staging|production]"

/deploy — Safe Deployment Pipeline

Multi-gate deploy: run tests → verify build → deploy to staging → verify → optionally promote to production.

Invocation

/deploy staging
/deploy production

Workflow

Step 1: Pre-Flight Checks

Apply **cm-test-gate** skill:

  • Run `npm run test:gate`
  • Verify all tests pass
  • Check build output

Step 2: Identity Guard

Apply **cm-identity-guard** skill:

  • Verify git config matches `.project-identity.json`
  • Confirm Cloudflare account is correct
  • Prevent wrong-account deploys

Step 3: Deploy

Apply **cm-safe-deploy** skill:

  • Deploy to staging first (always)
  • Verify staging deployment
  • Only promote to production if explicitly requested
  • Rollback strategy ready

Step 4: Post-Deploy

  • Run smoke tests on deployed URL
  • Verify critical paths work
  • Update CONTINUITY.md with deploy status

Notes

  • Production deploys always require explicit user confirmation
  • Staging is mandatory — no direct-to-production
  • Use `cm-secret-shield` scan before any deploy
Ships withcm

"I can't write code. But in 6 months, I shipped 12 real products using AI. CodyMaster is everything I learned — so you don't have to repeat my mistakes." — Tody Le, Head of Product, Creator of CodyMaster 50+ skills. One install.

Get the whole plugin

Other commands on cm.