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
| Flag | Shorthand | Default | Description |
|---|---|---|---|
--env | -e | local | Target environment |
--tag | -t | latest | Docker image or release tag |
--rollback | false | Rollback to previous deployment on failure | |
--no-confirm | -y | false | Skip confirmation prompts for production |
--dry-run | -n | false | Preview deployment plan without executing |
Examples
Deploy the default service
bash
clifi deployDeploy to staging with a specific tag
bash
clifi deploy --env staging --tag v2.4.1Deploy with automatic rollback
bash
clifi deploy --env production --rollbackPreview a production deployment
bash
clifi deploy --env production --dry-runSee also
- clifi run - Execute any workflow
- clifi status - Check deployment status