@fabioplunser/epd 0.5.11 → 0.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,16 +23,52 @@
23
23
  --vp-home-hero-name-background: linear-gradient(135deg, #a5b4fc 10%, #c084fc 60%, #f472b6 100%);
24
24
  }
25
25
 
26
- /* Feature cards styling */
27
- .VPFeature {
28
- transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
29
- border-radius: 12px !important;
26
+ /* Tighten excessive spacing between navbar and hero */
27
+ .VPHome {
28
+ margin-bottom: 1.5rem !important;
30
29
  }
31
30
 
32
- .VPFeature:hover {
33
- transform: translateY(-2px);
34
- border-color: var(--vp-c-brand-1) !important;
35
- box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
31
+ .VPHero {
32
+ padding-top: calc(var(--vp-nav-height) + 12px) !important;
33
+ padding-bottom: 16px !important;
34
+ }
35
+
36
+ .VPHero .container {
37
+ padding-top: 0 !important;
38
+ padding-bottom: 0 !important;
39
+ max-width: 1040px !important;
40
+ }
41
+
42
+ @media (min-width: 960px) {
43
+ .VPHero {
44
+ padding-top: calc(var(--vp-nav-height) + 16px) !important;
45
+ padding-bottom: 20px !important;
46
+ }
47
+ }
48
+
49
+ .VPHero .name {
50
+ font-size: 48px !important;
51
+ line-height: 1.1 !important;
52
+ margin-bottom: 4px !important;
53
+ }
54
+
55
+ .VPHero .text {
56
+ font-size: 36px !important;
57
+ line-height: 1.15 !important;
58
+ margin-bottom: 6px !important;
59
+ }
60
+
61
+ .VPHero .tagline {
62
+ font-size: 16px !important;
63
+ margin-top: 4px !important;
64
+ margin-bottom: 16px !important;
65
+ max-width: 640px !important;
66
+ line-height: 1.45 !important;
67
+ }
68
+
69
+ .VPHero .actions {
70
+ padding-top: 4px !important;
71
+ padding-bottom: 0 !important;
36
72
  }
37
73
 
38
74
  /* Custom Guide Navigation Grid */
@@ -106,4 +142,10 @@
106
142
  .guide-card {
107
143
  padding: 1rem 1.15rem;
108
144
  }
145
+ .VPHero .name {
146
+ font-size: 38px !important;
147
+ }
148
+ .VPHero .text {
149
+ font-size: 28px !important;
150
+ }
109
151
  }
package/docs/agents.md ADDED
@@ -0,0 +1,151 @@
1
+ # AI Agents Guide (Autonomous Deployments)
2
+
3
+ > How AI coding agents (Cursor, Windsurf, Claude Code, Cline, Roo, Copilot, Antigravity) use EPD to provision servers and deploy applications autonomously.
4
+
5
+ ---
6
+
7
+ ## The Philosophy: Why CLI & curl > MCP for Deployments
8
+
9
+ Many platforms attempt to build heavy **MCP (Model Context Protocol)** servers for deployments. We deliberately chose **not** to do this.
10
+
11
+ Here is why a clean CLI and raw `curl` is a strictly superior abstraction for AI coding agents:
12
+
13
+ 1. **Native Shell Capabilities**: Modern AI coding models (Claude 3.7 / Sonnet, OpenAI o3, Gemini, DeepSeek) are exceptionally skilled at running shell commands via their native terminal tools (`bash`, `run_command`).
14
+ 2. **Zero MCP Configuration Bloat**: MCP requires installing daemon processes, registering JSON configurations (`.cursor/mcp.json`, `claude_desktop_config.json`), handling Node.js socket bridges, and debugging RPC schema mismatches. A CLI requires **zero setup**:
15
+ ```bash
16
+ curl -fsSL https://epd.peppi.dev/install.sh | bash
17
+ ```
18
+ 3. **Universal Portability**: The exact same commands work in Cursor, Windsurf, Claude Code, GitHub Actions CI/CD, local terminals, and remote SSH jump boxes without installing specialized tool plugins.
19
+ 4. **Machine-Readable Output**: EPD provides structured flags like `--json` (`epd status --json`), predictable exit codes (0 = success, 1 = config, 2 = network, 3 = healthcheck timeout), and clean stdout/stderr streams that LLMs parse with near 100% accuracy.
20
+
21
+ ---
22
+
23
+ ## LLM Documentation Feeds (`llms.txt`)
24
+
25
+ AI agents do **not** need to scrape HTML pages or navigate complex client-rendered web apps. EPD provides standardized, token-efficient, plain-markdown feeds:
26
+
27
+ | Endpoint | Description | Command |
28
+ |---|---|---|
29
+ | [`/llms.txt`](/llms.txt) | Concise index of core documentation & CLI commands | `curl -s https://epd.peppi.dev/llms.txt` |
30
+ | [`/llms-full.txt`](/llms-full.txt) | Complete single-file markdown reference with full schema & recipes | `curl -s https://epd.peppi.dev/llms-full.txt` |
31
+
32
+ If an AI agent needs to understand how a specific EPD command or `epd.yml` property works, instruct it to fetch:
33
+ ```bash
34
+ curl -s https://epd.peppi.dev/llms.txt
35
+ ```
36
+
37
+ ---
38
+
39
+ ## Agent System Prompt Snippet
40
+
41
+ You can copy and paste this snippet directly into your project's `.cursorrules`, `CLAUDE.md`, or `AGENTS.md` file:
42
+
43
+ ```markdown
44
+ ### Deployment & Server Operations (EPD)
45
+ When asked to deploy, inspect, or manage server infrastructure:
46
+ 1. Always use the `epd` CLI (`curl -fsSL https://epd.peppi.dev/install.sh | bash` if not installed).
47
+ 2. For documentation lookups, fetch raw markdown directly from:
48
+ - `curl -s https://epd.peppi.dev/llms.txt`
49
+ - `curl -s https://epd.peppi.dev/llms-full.txt`
50
+ 3. Before deploying, run `epd doctor --local` to validate `epd.yml` and container settings.
51
+ 4. Deploy with `epd deploy`. EPD performs zero-downtime blue/green container switching fronted by Traefik.
52
+ 5. Verify deployment health using `epd status --json`.
53
+ 6. If a deployment fails or health checks timeout, execute `epd rollback` to revert traffic instantly.
54
+ ```
55
+
56
+ ---
57
+
58
+ ## Automated AI Agent Playbook
59
+
60
+ Here is the standard 5-step lifecycle an AI agent should execute when deploying a repository:
61
+
62
+ ### 1. Initialize Project Configuration
63
+ If `epd.yml` does not exist in the repository, the agent should run `epd init` non-interactively:
64
+
65
+ ```bash
66
+ epd init \
67
+ --name "my-saas" \
68
+ --host "159.69.120.45" \
69
+ --domain "app.example.com" \
70
+ --port 3000 \
71
+ --dockerfile
72
+ ```
73
+
74
+ This creates an optimized multi-stage `Dockerfile` (if absent) and an `epd.yml` configured for zero-downtime blue/green deployments.
75
+
76
+ ### 2. Pre-flight Validation
77
+ The agent validates local tooling, Dockerfile syntax, and environment configurations without initiating remote SSH connections:
78
+
79
+ ```bash
80
+ epd doctor --local
81
+ epd config
82
+ ```
83
+
84
+ ### 3. Server Provisioning (Clean VPS)
85
+ If deploying to a fresh Ubuntu or Debian server for the first time, the agent provisions Docker, Traefik, Let's Encrypt, and CrowdSec security with one command:
86
+
87
+ ```bash
88
+ epd setup --host 159.69.120.45
89
+ ```
90
+
91
+ ### 4. Zero-Downtime Deployment
92
+ The agent triggers the build and live cutover:
93
+
94
+ ```bash
95
+ epd deploy
96
+ ```
97
+
98
+ During this command:
99
+ - EPD builds the container on the target server.
100
+ - Boots the new container slot (e.g. `green`).
101
+ - Probes `/health` repeatedly until HTTP 200 OK is received.
102
+ - Hot-swaps Traefik routing dynamically without dropping a single active HTTP connection.
103
+ - Drains and stops the old slot (`blue`).
104
+
105
+ ### 5. Verification & JSON Parsing
106
+ The agent inspects the running cluster state in machine-readable JSON:
107
+
108
+ ```bash
109
+ epd status --json
110
+ ```
111
+
112
+ Example JSON response:
113
+ ```json
114
+ {
115
+ "project": "my-saas",
116
+ "activeSlot": "green",
117
+ "activeVersion": "v1.2.4",
118
+ "domain": "app.example.com",
119
+ "ssl": "active",
120
+ "slots": {
121
+ "green": { "status": "running", "replicas": 2, "healthy": true, "port": 3001 },
122
+ "blue": { "status": "stopped", "replicas": 0, "healthy": false, "port": 3000 }
123
+ },
124
+ "accessories": {
125
+ "postgres": { "status": "healthy", "port": 5432 }
126
+ }
127
+ }
128
+ ```
129
+
130
+ If issues are detected:
131
+ ```bash
132
+ # View last 50 log lines
133
+ epd logs -n 50
134
+
135
+ # Revert immediately to previous working slot
136
+ epd rollback
137
+ ```
138
+
139
+ ---
140
+
141
+ ## Exit Codes Reference for Scripting
142
+
143
+ AI agents should evaluate standard shell exit codes (`$?`):
144
+
145
+ | Exit Code | Meaning | Agent Action |
146
+ |---|---|---|
147
+ | `0` | **Success** | Continue task or report deployment URL. |
148
+ | `1` | **Configuration Error** | Read error output, inspect `epd.yml` or `Dockerfile`, fix syntax. |
149
+ | `2` | **SSH / Network Failure** | Check server IP, SSH key permissions (`chmod 600 ~/.ssh/id_rsa`), or firewall. |
150
+ | `3` | **Healthcheck Timeout** | Check application logs (`epd logs -n 50`), verify internal port and `/health` route. Run `epd rollback`. |
151
+ | `4` | **Deployment Lock Active** | Another deployment is in progress. Inspect lock with `epd lock status`. |
@@ -12,14 +12,14 @@ Before starting, ensure you have:
12
12
 
13
13
  1. **A Linux Server (VPS)**:
14
14
  - Any clean Linux VPS (Ubuntu 22.04/24.04, Debian 11/12, Fedora, Arch, etc.)
15
- - An open SSH port (22) with root or passwordless `sudo` access.
15
+ - An open SSH port (22) with root or passwordless `sudo` access (or password to allow EPD to configure it).
16
16
  - Public ports **80** (HTTP) and **443** (HTTPS) accessible from the internet.
17
17
  - A DNS `A` record pointing your domain to the server's public IP address.
18
18
 
19
19
  2. **Local Machine**:
20
- - [Bun](https://bun.sh) (v1.1+) or [Node.js](https://nodejs.org) (v18+).
20
+ - Linux or macOS (or Windows via WSL2).
21
21
  - Standard `ssh` client.
22
- - Docker installed locally (if deploying in Docker mode).
22
+ - Docker installed locally (if deploying in Docker mode to build images).
23
23
 
24
24
  ::: tip No Server Yet?
25
25
  If you don't have a server, you can provision one in 30 seconds using the built-in [Hetzner Cloud integration](/hetzner-dns):
@@ -32,10 +32,14 @@ epd hetzner create my-server --setup
32
32
 
33
33
  ## 1. Install EPD
34
34
 
35
- Install `epd` globally using your preferred package manager or download the standalone binary:
35
+ Install `epd` using the zero-dependency standalone installer (requires no Node.js or Bun runtime), or via your favorite package manager:
36
36
 
37
37
  ::: code-group
38
38
 
39
+ ```bash [curl (Zero Dependencies)]
40
+ curl -fsSL https://raw.githubusercontent.com/FabioPlunser/epd/main/install.sh | bash
41
+ ```
42
+
39
43
  ```bash [bun]
40
44
  bun install -g @fabioplunser/epd
41
45
  ```
@@ -52,11 +56,6 @@ pnpm add -g @fabioplunser/epd
52
56
  npx @fabioplunser/epd --help
53
57
  ```
54
58
 
55
- ```bash [Standalone Binary (Linux)]
56
- curl -fsSL https://github.com/FabioPlunser/epd/releases/latest/download/epd-linux-x64 -o /usr/local/bin/epd
57
- chmod +x /usr/local/bin/epd
58
- ```
59
-
60
59
  :::
61
60
 
62
61
  Verify installation:
@@ -66,7 +65,29 @@ epd --version
66
65
 
67
66
  ---
68
67
 
69
- ## 2. Initialize Your Project
68
+ ## 2. Shell Autocompletion (Optional)
69
+
70
+ Enable instant tab-completion for all commands, flags, and destination overlays:
71
+
72
+ ::: code-group
73
+
74
+ ```bash [zsh]
75
+ eval "$(epd completion zsh)"
76
+ ```
77
+
78
+ ```bash [bash]
79
+ source <(epd completion bash)
80
+ ```
81
+
82
+ ```bash [fish]
83
+ epd completion fish | source
84
+ ```
85
+
86
+ :::
87
+
88
+ ---
89
+
90
+ ## 3. Initialize Your Project
70
91
 
71
92
  Navigate to your application's root directory:
72
93
 
@@ -82,12 +103,12 @@ epd init
82
103
  - Generates a tailored `epd.yml` config file (and an optimized starter `Dockerfile` if needed).
83
104
 
84
105
  ::: tip GitHub Actions Starter
85
- Run `epd init --ci` to also generate a ready-to-run GitHub Actions workflow (`.github/workflows/deploy.yml`).
106
+ Run `epd init --ci` or `epd gh-action` to also generate a ready-to-run GitHub Actions workflow (`.github/workflows/deploy.yml`).
86
107
  :::
87
108
 
88
109
  ---
89
110
 
90
- ## 3. Configure `epd.yml`
111
+ ## 4. Configure `epd.yml`
91
112
 
92
113
  Open `epd.yml` in your editor. Here is a typical single-server configuration:
93
114
 
@@ -169,7 +190,23 @@ When you deploy, `epd` securely uploads secrets into a root-owned `0600` file on
169
190
 
170
191
  ---
171
192
 
172
- ## 4. Run Server Setup
193
+ ## 5. Pre-flight Checks (`epd doctor`)
194
+
195
+ Run `epd doctor` to verify your local tools, secrets, and server reachability before deploying:
196
+
197
+ ```bash
198
+ epd doctor
199
+ ```
200
+
201
+ `epd doctor` confirms:
202
+ - Local Bun/Node, Docker engine, and clean git state
203
+ - SSH client and key permissions (`0600`)
204
+ - `epd.yml` syntax and `.env` secret availability
205
+ - Remote server SSH reachability, passwordless sudo, Docker health, and free disk space
206
+
207
+ ---
208
+
209
+ ## 6. Run Server Setup
173
210
 
174
211
  Run `epd setup` once for each new server:
175
212
 
@@ -177,16 +214,16 @@ Run `epd setup` once for each new server:
177
214
  epd setup
178
215
  ```
179
216
 
180
- ### What `epd setup` does automatically:
181
- 1. **Validates SSH Connectivity** to all configured servers.
182
- 2. **Installs Host Prerequisites**: Installs Docker (or PM2 and Node/Bun in process mode) if not already present.
183
- 3. **Provisions Shared Traefik Reverse Proxy**: Launches Traefik listening on ports 80 and 443 with Let's Encrypt automated ACME SSL certificate issuance.
184
- 4. **Creates Network & Storage**: Configures the shared Docker bridge network (`epd`) and volume directories (`/var/lib/epd`).
185
- 5. **Runs Your First Deployment**: Builds the app, starts the blue slot, verifies health checks, and registers the domain in Traefik.
217
+ ### Automated SSH & Server Onboarding:
218
+ - **Password Prompt**: If your server only has password login enabled, `epd setup` prompts for the server password once.
219
+ - **Key Installation**: It installs your public key (`~/.ssh/id_ed25519.pub`) to `~/.ssh/authorized_keys`.
220
+ - **Passwordless Sudo**: Configures `/etc/sudoers.d/epd` automatically so future commands run non-interactively.
221
+ - **Docker & Traefik**: Installs Docker and starts Traefik reverse proxy with Let's Encrypt SSL.
222
+ - **Initial Deploy**: Builds your image, boots slot `blue`, verifies health checks, and registers routes.
186
223
 
187
224
  ---
188
225
 
189
- ## 5. Deploy Updates with Zero Downtime
226
+ ## 7. Deploy Updates with Zero Downtime
190
227
 
191
228
  Whenever you commit changes or want to deploy an update:
192
229
 
@@ -194,6 +231,11 @@ Whenever you commit changes or want to deploy an update:
194
231
  epd deploy
195
232
  ```
196
233
 
234
+ Want to preview the deployment plan without changing anything on the servers? Run a dry run:
235
+ ```bash
236
+ epd deploy --dry-run
237
+ ```
238
+
197
239
  `epd deploy` executes a zero-downtime blue/green swap:
198
240
  1. Builds the latest container image (or syncs process code).
199
241
  2. Starts the new version in the **idle slot** (e.g., `green`).
@@ -211,9 +253,9 @@ This re-activates the previous slot in seconds without rebuilding or re-uploadin
211
253
 
212
254
  ---
213
255
 
214
- ## 6. Inspect & Monitor
256
+ ## 8. Inspect & Monitor
215
257
 
216
- Use `epd` CLI commands to check your application's health:
258
+ Use `epd` CLI commands to check your application's health and operations:
217
259
 
218
260
  ```bash
219
261
  # Check running containers, active slots, and route status
@@ -222,8 +264,18 @@ epd status
222
264
  # Stream live container logs
223
265
  epd logs -f
224
266
 
225
- # Follow logs specifically from your web service
226
- epd logs --service web -f --lines 100
267
+ # Real-time multi-server CPU, memory, and container monitor
268
+ epd top
269
+
270
+ # Inspect Let's Encrypt SSL/TLS certificates and days to expiry
271
+ epd ssl
272
+
273
+ # Toggle zero-downtime 503 maintenance page
274
+ epd maintenance on -m "Upgrading database. Back in 10 minutes."
275
+ epd maintenance off
276
+
277
+ # Create compressed database / volume backups
278
+ epd backup db
227
279
 
228
280
  # Open an interactive shell inside a running replica
229
281
  epd shell
@@ -12,14 +12,14 @@ Before starting, ensure you have:
12
12
 
13
13
  1. **A Linux Server (VPS)**:
14
14
  - Any clean Linux VPS (Ubuntu 22.04/24.04, Debian 11/12, Fedora, Arch, etc.)
15
- - An open SSH port (22) with root or passwordless `sudo` access.
15
+ - An open SSH port (22) with root or passwordless `sudo` access (or password to allow EPD to configure it).
16
16
  - Public ports **80** (HTTP) and **443** (HTTPS) accessible from the internet.
17
17
  - A DNS `A` record pointing your domain to the server's public IP address.
18
18
 
19
19
  2. **Local Machine**:
20
- - [Bun](https://bun.sh) (v1.1+) or [Node.js](https://nodejs.org) (v18+).
20
+ - Linux or macOS (or Windows via WSL2).
21
21
  - Standard `ssh` client.
22
- - Docker installed locally (if deploying in Docker mode).
22
+ - Docker installed locally (if deploying in Docker mode to build images).
23
23
 
24
24
  ::: tip No Server Yet?
25
25
  If you don't have a server, you can provision one in 30 seconds using the built-in [Hetzner Cloud integration](/hetzner-dns):
@@ -32,10 +32,14 @@ epd hetzner create my-server --setup
32
32
 
33
33
  ## 1. Install EPD
34
34
 
35
- Install `epd` globally using your preferred package manager or download the standalone binary:
35
+ Install `epd` using the zero-dependency standalone installer (requires no Node.js or Bun runtime), or via your favorite package manager:
36
36
 
37
37
  ::: code-group
38
38
 
39
+ ```bash [curl (Zero Dependencies)]
40
+ curl -fsSL https://raw.githubusercontent.com/FabioPlunser/epd/main/install.sh | bash
41
+ ```
42
+
39
43
  ```bash [bun]
40
44
  bun install -g @fabioplunser/epd
41
45
  ```
@@ -52,11 +56,6 @@ pnpm add -g @fabioplunser/epd
52
56
  npx @fabioplunser/epd --help
53
57
  ```
54
58
 
55
- ```bash [Standalone Binary (Linux)]
56
- curl -fsSL https://github.com/FabioPlunser/epd/releases/latest/download/epd-linux-x64 -o /usr/local/bin/epd
57
- chmod +x /usr/local/bin/epd
58
- ```
59
-
60
59
  :::
61
60
 
62
61
  Verify installation:
@@ -66,7 +65,29 @@ epd --version
66
65
 
67
66
  ---
68
67
 
69
- ## 2. Initialize Your Project
68
+ ## 2. Shell Autocompletion (Optional)
69
+
70
+ Enable instant tab-completion for all commands, flags, and destination overlays:
71
+
72
+ ::: code-group
73
+
74
+ ```bash [zsh]
75
+ eval "$(epd completion zsh)"
76
+ ```
77
+
78
+ ```bash [bash]
79
+ source <(epd completion bash)
80
+ ```
81
+
82
+ ```bash [fish]
83
+ epd completion fish | source
84
+ ```
85
+
86
+ :::
87
+
88
+ ---
89
+
90
+ ## 3. Initialize Your Project
70
91
 
71
92
  Navigate to your application's root directory:
72
93
 
@@ -82,12 +103,12 @@ epd init
82
103
  - Generates a tailored `epd.yml` config file (and an optimized starter `Dockerfile` if needed).
83
104
 
84
105
  ::: tip GitHub Actions Starter
85
- Run `epd init --ci` to also generate a ready-to-run GitHub Actions workflow (`.github/workflows/deploy.yml`).
106
+ Run `epd init --ci` or `epd gh-action` to also generate a ready-to-run GitHub Actions workflow (`.github/workflows/deploy.yml`).
86
107
  :::
87
108
 
88
109
  ---
89
110
 
90
- ## 3. Configure `epd.yml`
111
+ ## 4. Configure `epd.yml`
91
112
 
92
113
  Open `epd.yml` in your editor. Here is a typical single-server configuration:
93
114
 
@@ -169,7 +190,23 @@ When you deploy, `epd` securely uploads secrets into a root-owned `0600` file on
169
190
 
170
191
  ---
171
192
 
172
- ## 4. Run Server Setup
193
+ ## 5. Pre-flight Checks (`epd doctor`)
194
+
195
+ Run `epd doctor` to verify your local tools, secrets, and server reachability before deploying:
196
+
197
+ ```bash
198
+ epd doctor
199
+ ```
200
+
201
+ `epd doctor` confirms:
202
+ - Local Bun/Node, Docker engine, and clean git state
203
+ - SSH client and key permissions (`0600`)
204
+ - `epd.yml` syntax and `.env` secret availability
205
+ - Remote server SSH reachability, passwordless sudo, Docker health, and free disk space
206
+
207
+ ---
208
+
209
+ ## 6. Run Server Setup
173
210
 
174
211
  Run `epd setup` once for each new server:
175
212
 
@@ -177,16 +214,16 @@ Run `epd setup` once for each new server:
177
214
  epd setup
178
215
  ```
179
216
 
180
- ### What `epd setup` does automatically:
181
- 1. **Validates SSH Connectivity** to all configured servers.
182
- 2. **Installs Host Prerequisites**: Installs Docker (or PM2 and Node/Bun in process mode) if not already present.
183
- 3. **Provisions Shared Traefik Reverse Proxy**: Launches Traefik listening on ports 80 and 443 with Let's Encrypt automated ACME SSL certificate issuance.
184
- 4. **Creates Network & Storage**: Configures the shared Docker bridge network (`epd`) and volume directories (`/var/lib/epd`).
185
- 5. **Runs Your First Deployment**: Builds the app, starts the blue slot, verifies health checks, and registers the domain in Traefik.
217
+ ### Automated SSH & Server Onboarding:
218
+ - **Password Prompt**: If your server only has password login enabled, `epd setup` prompts for the server password once.
219
+ - **Key Installation**: It installs your public key (`~/.ssh/id_ed25519.pub`) to `~/.ssh/authorized_keys`.
220
+ - **Passwordless Sudo**: Configures `/etc/sudoers.d/epd` automatically so future commands run non-interactively.
221
+ - **Docker & Traefik**: Installs Docker and starts Traefik reverse proxy with Let's Encrypt SSL.
222
+ - **Initial Deploy**: Builds your image, boots slot `blue`, verifies health checks, and registers routes.
186
223
 
187
224
  ---
188
225
 
189
- ## 5. Deploy Updates with Zero Downtime
226
+ ## 7. Deploy Updates with Zero Downtime
190
227
 
191
228
  Whenever you commit changes or want to deploy an update:
192
229
 
@@ -194,6 +231,11 @@ Whenever you commit changes or want to deploy an update:
194
231
  epd deploy
195
232
  ```
196
233
 
234
+ Want to preview the deployment plan without changing anything on the servers? Run a dry run:
235
+ ```bash
236
+ epd deploy --dry-run
237
+ ```
238
+
197
239
  `epd deploy` executes a zero-downtime blue/green swap:
198
240
  1. Builds the latest container image (or syncs process code).
199
241
  2. Starts the new version in the **idle slot** (e.g., `green`).
@@ -211,9 +253,9 @@ This re-activates the previous slot in seconds without rebuilding or re-uploadin
211
253
 
212
254
  ---
213
255
 
214
- ## 6. Inspect & Monitor
256
+ ## 8. Inspect & Monitor
215
257
 
216
- Use `epd` CLI commands to check your application's health:
258
+ Use `epd` CLI commands to check your application's health and operations:
217
259
 
218
260
  ```bash
219
261
  # Check running containers, active slots, and route status
@@ -222,8 +264,18 @@ epd status
222
264
  # Stream live container logs
223
265
  epd logs -f
224
266
 
225
- # Follow logs specifically from your web service
226
- epd logs --service web -f --lines 100
267
+ # Real-time multi-server CPU, memory, and container monitor
268
+ epd top
269
+
270
+ # Inspect Let's Encrypt SSL/TLS certificates and days to expiry
271
+ epd ssl
272
+
273
+ # Toggle zero-downtime 503 maintenance page
274
+ epd maintenance on -m "Upgrading database. Back in 10 minutes."
275
+ epd maintenance off
276
+
277
+ # Create compressed database / volume backups
278
+ epd backup db
227
279
 
228
280
  # Open an interactive shell inside a running replica
229
281
  epd shell