This chapter covers the core features and capabilities of Deploy Scripts.
# Run a blue-green deployment
python src/deploy_scripts.py --config examples/deploy_config.json --strategy blue-green
# Run a canary deployment (gradually shift traffic)
python src/deploy_scripts.py --config examples/deploy_config.json --strategy canary
# Rolling update with batch size of 2
python src/deploy_scripts.py --config examples/deploy_config.json --strategy rolling --batch-size 2
# Dry run — preview without executing
python src/deploy_scripts.py --config examples/deploy_config.json --strategy blue-green --dry-run
# Rollback to previous version
python src/deploy_scripts.py --config examples/deploy_config.json --rollback
# View deployment history
python src/deploy_scripts.py --config examples/deploy_config.json --historyFollow this guide to get Deploy Scripts up and running in your environment.
| Field | Type | Required | Description |
|---|---|---|---|
app_name | string | Yes | Application name |
version | string | Yes | Version being deployed (e.g., v2.1.0) |
environment | string | No | Target environment (default: staging) |
instances | array | No | List of target hosts/instances |
health_check_url | string | No | URL to check after deployment |
health_check_timeout | int | No | Seconds to wait for health check (default: 30) |
canary_steps | array | No | Traffic percentages for canary (e.g., [10, 25, 50, 100]) |
rollback_on_failure | bool | No | Auto-rollback on health check failure (default: true) |
| Flag | Description |
|---|---|
--config, -c | Path to the JSON deploy config (required) |
--strategy, -s | Deploy strategy: blue-green, canary, rolling |
--batch-size | Instances per batch for rolling updates (default: 1) |
--dry-run | Preview deployment without executing |
--rollback | Rollback to previous version |
--history | Show deployment history |
--verbose, -v | Enable verbose logging |
Get the full Deploy Scripts and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.