CliFi

CLI Reference

clifi deploy

Deploy a service or application using the configured deployment tasks.

Synopsis

clifi deploy [service...] [flags]

Description

The deploy command is a convenience wrapper around clifi run that targets deployment-specific tasks. It resolves the deployment graph, validates environment variables, and executes the deploy task and its dependencies.

If multiple services are specified, CliFi deploys them in dependency order with rollback support.

Flags

FlagShorthandDefaultDescription
--env-elocalTarget environment
--tag-tlatestDocker image or release tag
--rollbackfalseRollback to previous deployment on failure
--no-confirm-yfalseSkip confirmation prompts for production
--dry-run-nfalsePreview deployment plan without executing

Examples

Deploy the default service

bash
clifi deploy

Deploy to staging with a specific tag

bash
clifi deploy --env staging --tag v2.4.1

Deploy with automatic rollback

bash
clifi deploy --env production --rollback

Preview a production deployment

bash
clifi deploy --env production --dry-run

See also