@fabioplunser/epd 0.5.10 → 0.5.12
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.
- package/README.md +11 -18
- package/dist/cli.js +3369 -2263
- package/docs/guide/installation.md +32 -88
- package/docs/reference/cli.md +202 -88
- package/package.json +1 -1
|
@@ -8,13 +8,11 @@ Everything you need to prepare your development environment and target servers f
|
|
|
8
8
|
|
|
9
9
|
`epd` runs on your local development machine or inside a CI runner (such as GitHub Actions).
|
|
10
10
|
|
|
11
|
-
- **Operating System**:
|
|
12
|
-
- **
|
|
13
|
-
- [Bun](https://bun.sh) v1.1.0 or higher *(recommended)*, OR
|
|
14
|
-
- [Node.js](https://nodejs.org) v18.0.0 or higher.
|
|
11
|
+
- **Operating System**: Linux or macOS (or Windows via WSL2).
|
|
12
|
+
- **Standalone Binary**: No local runtimes (Node.js, Bun, Python) are required when using the standalone installer.
|
|
15
13
|
- **Tools**:
|
|
16
14
|
- OpenSSH client (`ssh`).
|
|
17
|
-
- Docker Desktop or Docker Engine (required if using `mode: docker`).
|
|
15
|
+
- Docker Desktop or Docker Engine (required locally only if using `mode: docker` to build images).
|
|
18
16
|
- `rsync` (required if using `mode: process`).
|
|
19
17
|
|
|
20
18
|
---
|
|
@@ -30,8 +28,8 @@ Everything you need to prepare your development environment and target servers f
|
|
|
30
28
|
- Arch Linux / Alpine Linux
|
|
31
29
|
- **SSH Access**:
|
|
32
30
|
- Open SSH port (default: 22).
|
|
33
|
-
- Root login or a user allowed to run `sudo
|
|
34
|
-
- SSH key authentication
|
|
31
|
+
- Root login or a user allowed to run `sudo`.
|
|
32
|
+
- Password or SSH key authentication.
|
|
35
33
|
- **Firewall & Ports**:
|
|
36
34
|
- **Port 80 (HTTP)**: Required for Let's Encrypt HTTP-01 challenge and HTTP traffic redirection.
|
|
37
35
|
- **Port 443 (HTTPS)**: Required for encrypted TLS/SSL traffic.
|
|
@@ -45,13 +43,21 @@ Everything you need to prepare your development environment and target servers f
|
|
|
45
43
|
|
|
46
44
|
## Installing EPD
|
|
47
45
|
|
|
48
|
-
### Option 1:
|
|
46
|
+
### Option 1: Zero-Dependency Standalone Installer (Recommended)
|
|
47
|
+
|
|
48
|
+
Installs the pre-compiled, self-contained standalone executable directly for Linux (`x64` / `arm64`) or macOS (`Apple Silicon` / `Intel`). **Requires no Node.js or Bun runtime:**
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
curl -fsSL https://raw.githubusercontent.com/FabioPlunser/epd/main/install.sh | bash
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Option 2: Bun
|
|
49
55
|
|
|
50
56
|
```bash
|
|
51
57
|
bun install -g @fabioplunser/epd
|
|
52
58
|
```
|
|
53
59
|
|
|
54
|
-
### Option
|
|
60
|
+
### Option 3: NPM / PNPM / Yarn
|
|
55
61
|
|
|
56
62
|
::: code-group
|
|
57
63
|
|
|
@@ -69,15 +75,6 @@ yarn global add @fabioplunser/epd
|
|
|
69
75
|
|
|
70
76
|
:::
|
|
71
77
|
|
|
72
|
-
### Option 3: Standalone Linux Binary (No Node/Bun Required)
|
|
73
|
-
|
|
74
|
-
If you are running in CI or want a single standalone binary:
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
curl -fsSL https://github.com/FabioPlunser/epd/releases/latest/download/epd-linux-x64 -o /usr/local/bin/epd
|
|
78
|
-
chmod +x /usr/local/bin/epd
|
|
79
|
-
```
|
|
80
|
-
|
|
81
78
|
### Option 4: Run via `npx` / `bunx` Without Installation
|
|
82
79
|
|
|
83
80
|
```bash
|
|
@@ -88,82 +85,29 @@ bunx @fabioplunser/epd deploy
|
|
|
88
85
|
|
|
89
86
|
---
|
|
90
87
|
|
|
91
|
-
##
|
|
92
|
-
|
|
93
|
-
`epd` connects to servers using your system's SSH configuration.
|
|
94
|
-
|
|
95
|
-
`epd setup` first tests public-key login without sudo, using keys available to
|
|
96
|
-
OpenSSH, including your `ssh-agent`. Load an encrypted key with `ssh-add` before
|
|
97
|
-
running setup. An explicit `ssh.key` selects that identity.
|
|
98
|
-
|
|
99
|
-
If key authentication is rejected in an interactive terminal, setup installs a
|
|
100
|
-
public key using a one-time SSH login. It uses the configured key, lets you select
|
|
101
|
-
an agent key, or uses a standard local key. If none exists, it creates an Ed25519
|
|
102
|
-
key with `ssh-keygen`. OpenSSH handles the login password prompt; EPD sends only
|
|
103
|
-
the public key and preserves existing `authorized_keys` entries. Setup verifies
|
|
104
|
-
a fresh key-authenticated connection before continuing. If the server disallows
|
|
105
|
-
password login, authorize your key through the provider console or an administrator.
|
|
88
|
+
## Automated Server & SSH Setup
|
|
106
89
|
|
|
107
|
-
|
|
90
|
+
`epd` makes server onboarding effortless:
|
|
108
91
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
92
|
+
When running `epd setup` against a fresh server:
|
|
93
|
+
1. **Key Detection**: EPD checks for existing local keys (`~/.ssh/id_ed25519`, `~/.ssh/gh_deploy`, etc.) or loads keys from your active `ssh-agent`. If none exist, it generates a secure Ed25519 key for you.
|
|
94
|
+
2. **One-Time Password Authentication**: If key authentication is not yet authorized on the remote server, EPD interactively prompts for the server password in your terminal.
|
|
95
|
+
3. **Automated Key Installation**: EPD installs the public key to `~/.ssh/authorized_keys` with secure permissions (`0700` / `0600`).
|
|
96
|
+
4. **Passwordless Sudo Configuration**: If deploying with a non-root user (e.g. `fabio`), EPD uses the provided password to configure passwordless sudo rules in `/etc/sudoers.d/epd`.
|
|
97
|
+
5. **Never Asked Again**: From that point on, all deploys, rollbacks, and log streams run completely passwordless and non-interactively!
|
|
113
98
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
Before running `epd setup`, verify you can connect without entering a password:
|
|
117
|
-
|
|
118
|
-
```bash
|
|
119
|
-
ssh root@203.0.113.10
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
### 2. Copy SSH Key to Server
|
|
123
|
-
|
|
124
|
-
If you need to copy your local SSH key to the remote server:
|
|
125
|
-
|
|
126
|
-
```bash
|
|
127
|
-
ssh-copy-id root@203.0.113.10
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
### 3. Custom SSH Keys & Ports
|
|
131
|
-
|
|
132
|
-
If your server uses a non-standard port or specific key, specify them in `epd.yml`:
|
|
99
|
+
---
|
|
133
100
|
|
|
134
|
-
|
|
135
|
-
ssh:
|
|
136
|
-
user: ubuntu
|
|
137
|
-
port: 2222
|
|
138
|
-
key: ~/.ssh/id_ed25519
|
|
139
|
-
proxy_jump: bastion.example.com
|
|
140
|
-
```
|
|
101
|
+
## Pre-flight Diagnostics
|
|
141
102
|
|
|
142
|
-
|
|
143
|
-
epd escalates for docker, systemd and the files under `/var/lib/epd`. The
|
|
144
|
-
smoothest setup is a passwordless rule:
|
|
103
|
+
Before deploying, you can run `epd doctor` to verify your entire local and remote setup:
|
|
145
104
|
|
|
146
105
|
```bash
|
|
147
|
-
|
|
148
|
-
sudo chmod 440 /etc/sudoers.d/epd
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
Without it, epd asks for the sudo password once per run and reuses it for every
|
|
152
|
-
command on that host — nothing is written to disk. For CI, where nobody can
|
|
153
|
-
type, set `EPD_SUDO_PASSWORD` (or `ssh.sudo_password: ${EPD_SUDO_PASSWORD}` in
|
|
154
|
-
`epd.yml`) instead.
|
|
155
|
-
|
|
156
|
-
To use a different login on a single server, write it into the host entry —
|
|
157
|
-
that wins over `ssh.user`:
|
|
158
|
-
|
|
159
|
-
```yaml
|
|
160
|
-
servers:
|
|
161
|
-
web:
|
|
162
|
-
hosts: ["deploy@203.0.113.10", "ubuntu@203.0.113.11"]
|
|
106
|
+
epd doctor
|
|
163
107
|
```
|
|
164
108
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
109
|
+
It validates:
|
|
110
|
+
- Local runtime, Git working tree, and Docker engine status
|
|
111
|
+
- SSH client and private key permissions (`0600`)
|
|
112
|
+
- `epd.yml` schema and required `.env` secret availability
|
|
113
|
+
- Remote server connectivity, passwordless sudo, Docker health, disk space, and deploy locks
|
package/docs/reference/cli.md
CHANGED
|
@@ -6,25 +6,55 @@ Complete reference for all commands and options provided by the `epd` CLI.
|
|
|
6
6
|
|
|
7
7
|
## Command Overview
|
|
8
8
|
|
|
9
|
+
The `epd` command line is organized into five functional categories:
|
|
10
|
+
|
|
11
|
+
### Deploy & Lifecycle
|
|
9
12
|
| Command | Usage | Description |
|
|
10
13
|
|---|---|---|
|
|
11
14
|
| [`epd init`](#epd-init) | `epd init [--ci]` | Initialize a new project with interactive runtime detection. |
|
|
12
|
-
| [`epd
|
|
13
|
-
| [`epd
|
|
14
|
-
| [`epd
|
|
15
|
-
| [`epd redeploy`](#epd-redeploy) | `epd redeploy` | Restart current running version without rebuilding or uploading. |
|
|
15
|
+
| [`epd setup`](#epd-setup) | `epd setup [--host <ip>]` | Provision server prerequisites, launch Traefik, install SSH keys, and run initial deploy. |
|
|
16
|
+
| [`epd deploy`](#epd-deploy) | `epd deploy [-d <dest>] [--dry-run]` | Build and deploy with zero-downtime blue/green switching. |
|
|
17
|
+
| [`epd redeploy`](#epd-redeploy) | `epd redeploy [--dry-run]` | Restart current running version without rebuilding or uploading. |
|
|
16
18
|
| [`epd rollback`](#epd-rollback) | `epd rollback [version]` | Revert traffic to the previous version or a listed version. |
|
|
19
|
+
| [`epd remove`](#epd-remove) | `epd remove [-y]` | Stop application, remove routes, and delete files from servers. |
|
|
20
|
+
|
|
21
|
+
### Observability & Metrics
|
|
22
|
+
| Command | Usage | Description |
|
|
23
|
+
|---|---|---|
|
|
17
24
|
| [`epd status`](#epd-status) | `epd status [--json]` | Show live slots, running replicas, accessories, and route health. |
|
|
18
25
|
| [`epd logs`](#epd-logs) | `epd logs [-f] [-n <num>]` | Stream and tail logs from services, accessories, or servers. |
|
|
26
|
+
| [`epd top`](#epd-top) | `epd top [--once]` | Real-time multi-server CPU, memory, and container monitor (`epd stats`). |
|
|
27
|
+
| [`epd ssl`](#epd-ssl) | `epd ssl [--host <ip>]` | Inspect and verify Let's Encrypt SSL/TLS certificates (`epd certs`). |
|
|
28
|
+
| [`epd config`](#epd-config) | `epd config [--raw]` | Validate and display resolved `epd.yml` configuration. |
|
|
29
|
+
| [`epd docker-command`](#epd-docker-command)| `epd docker-command` | Output copy-pasteable `docker run` commands for debugging. |
|
|
30
|
+
|
|
31
|
+
### Server Management
|
|
32
|
+
| Command | Usage | Description |
|
|
33
|
+
|---|---|---|
|
|
19
34
|
| [`epd exec`](#epd-exec) | `epd exec -- <cmd>` | Execute a one-off command in the app's container environment. |
|
|
20
35
|
| [`epd shell`](#epd-shell) | `epd shell` | Open an interactive terminal inside a live replica or accessory. |
|
|
36
|
+
| [`epd lock`](#epd-lock) | `epd lock <action>` | Inspect or clear atomic deployment locks. |
|
|
21
37
|
| [`epd proxy`](#epd-proxy) | `epd proxy <action>` | Inspect, view logs, view routes, or restart shared Traefik proxy. |
|
|
38
|
+
| [`epd maintenance`](#epd-maintenance) | `epd maintenance <on\|off>` | Zero-downtime 503 maintenance mode toggle. |
|
|
39
|
+
| [`epd backup`](#epd-backup) | `epd backup [accessory]` | Create compressed database and volume snapshot archives. |
|
|
40
|
+
| [`epd restore`](#epd-restore) | `epd restore <file>` | Restore a database or volume snapshot into a live accessory. |
|
|
41
|
+
|
|
42
|
+
### Cloud & Automation
|
|
43
|
+
| Command | Usage | Description |
|
|
44
|
+
|---|---|---|
|
|
45
|
+
| [`epd gh-action`](#epd-gh-action) | `epd gh-action` | Generate GitHub Actions CI/CD workflow (`epd ci`). |
|
|
46
|
+
| [`epd auth`](#epd-auth) | `epd auth [subcommand]` | Manage linked Cloudflare & Hetzner credentials globally or per project. |
|
|
22
47
|
| [`epd dns`](#epd-dns) | `epd dns <action>` | Check status or synchronize DNS records with Cloudflare or Hetzner. |
|
|
48
|
+
| [`epd cloudflare`](#epd-cloudflare) | `epd cloudflare <action>` | Manage Cloudflare DNS records for application domains. |
|
|
23
49
|
| [`epd hetzner`](#epd-hetzner) | `epd hetzner <action>` | List, create, provision, or delete Hetzner Cloud servers. |
|
|
24
|
-
| [`epd
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
|
50
|
+
| [`epd sevalla`](#epd-sevalla) | `epd sevalla <action>` | Manage Sevalla applications and managed database clusters. |
|
|
51
|
+
|
|
52
|
+
### Diagnostics & Tools
|
|
53
|
+
| Command | Usage | Description |
|
|
54
|
+
|---|---|---|
|
|
55
|
+
| [`epd doctor`](#epd-doctor) | `epd doctor [--local]` | Run pre-flight health, configuration, and server connectivity diagnostics. |
|
|
56
|
+
| [`epd completion`](#epd-completion) | `epd completion <shell>` | Generate shell autocompletion script (bash, zsh, fish). |
|
|
57
|
+
| [`epd update`](#epd-update) | `epd update` | Check for updates and upgrade to the latest version. |
|
|
28
58
|
|
|
29
59
|
---
|
|
30
60
|
|
|
@@ -38,61 +68,105 @@ epd init [options]
|
|
|
38
68
|
|
|
39
69
|
### Options:
|
|
40
70
|
- `--name <name>`: Override project name (defaults to folder name or `package.json`).
|
|
41
|
-
- `--mode <docker|process>`: Choose deployment runtime.
|
|
71
|
+
- `--mode <docker|process>`: Choose deployment runtime (`docker` or `process`).
|
|
42
72
|
- `--host <ip>`: Server host IP address.
|
|
43
73
|
- `--domain <domain>`: Public domain to configure.
|
|
44
74
|
- `--port <port>`: Internal application port (default: 3000).
|
|
45
|
-
- `--dockerfile`: Automatically generate a starter `Dockerfile`.
|
|
75
|
+
- `--dockerfile`: Automatically generate a production-ready starter `Dockerfile`.
|
|
46
76
|
- `--ci`: Automatically generate `.github/workflows/deploy.yml`.
|
|
47
77
|
|
|
48
78
|
---
|
|
49
79
|
|
|
50
|
-
## `epd
|
|
80
|
+
## `epd doctor`
|
|
51
81
|
|
|
52
|
-
|
|
82
|
+
Run comprehensive pre-flight diagnostics on your local tooling, project configuration, environment secrets, and remote servers before running a deployment.
|
|
53
83
|
|
|
54
84
|
```bash
|
|
55
|
-
epd
|
|
85
|
+
epd doctor [options]
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Options:
|
|
89
|
+
- `-l, --local`: Only run local diagnostics (skips SSH connections to remote servers). Useful when working offline or in air-gapped environments.
|
|
90
|
+
|
|
91
|
+
### Diagnostics performed:
|
|
92
|
+
- **Local environment**: Runtime version, Docker CLI and daemon response, clean git tree verification, SSH client and permissions on private keys (`0600`).
|
|
93
|
+
- **Configuration & Secrets**: Validates `epd.yml` schema, verifies that all declared secrets exist in `.env` or system environment, and checks cloud DNS token availability.
|
|
94
|
+
- **Remote servers**: Validates SSH ping latency, tests passwordless sudo status, queries remote Docker daemon health, checks available disk space (`df -h /`), and detects active deploy locks.
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## `epd completion`
|
|
99
|
+
|
|
100
|
+
Generate shell autocompletion scripts for Zsh, Bash, or Fish.
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
epd completion <bash|zsh|fish>
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Setup Instructions:
|
|
107
|
+
|
|
108
|
+
::: code-group
|
|
109
|
+
|
|
110
|
+
```bash [Zsh]
|
|
111
|
+
# Add to ~/.zshrc:
|
|
112
|
+
eval "$(epd completion zsh)"
|
|
113
|
+
|
|
114
|
+
# Or generate completion file:
|
|
115
|
+
epd completion zsh > ~/.zsh/completion/_epd
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
```bash [Bash]
|
|
119
|
+
# Add to ~/.bashrc:
|
|
120
|
+
source <(epd completion bash)
|
|
121
|
+
|
|
122
|
+
# Or save to system completions:
|
|
123
|
+
epd completion bash | sudo tee /etc/bash_completion.d/epd > /dev/null
|
|
56
124
|
```
|
|
57
125
|
|
|
58
|
-
|
|
126
|
+
```bash [Fish]
|
|
127
|
+
# Add to ~/.config/fish/config.fish:
|
|
128
|
+
epd completion fish | source
|
|
129
|
+
|
|
130
|
+
# Or generate completions file:
|
|
131
|
+
epd completion fish > ~/.config/fish/completions/epd.fish
|
|
132
|
+
```
|
|
59
133
|
|
|
60
|
-
|
|
61
|
-
- `epd auth`: Display the authentication status of all cloud providers.
|
|
62
|
-
- `epd auth cloudflare`: Launch interactive flow to connect Cloudflare for automated DNS and SSL.
|
|
63
|
-
- `epd auth hetzner`: Launch interactive flow to connect Hetzner Cloud for dynamic server resolution and DNS.
|
|
64
|
-
- `epd auth logout`: Clear globally stored authentication credentials.
|
|
134
|
+
:::
|
|
65
135
|
|
|
66
136
|
---
|
|
67
137
|
|
|
68
138
|
## `epd setup`
|
|
69
139
|
|
|
70
|
-
Prepares fresh servers for deployment.
|
|
140
|
+
Prepares fresh servers for deployment. Installs Docker (or rsync and pm2 in process mode), creates the shared bridge network, configures Let's Encrypt Traefik reverse proxy, and runs the initial deployment.
|
|
71
141
|
|
|
72
142
|
```bash
|
|
73
143
|
epd setup [options]
|
|
74
144
|
```
|
|
75
145
|
|
|
146
|
+
### Interactive SSH Key Installation:
|
|
147
|
+
When running `epd setup` against a brand new server where SSH keys have not yet been installed, EPD prompts for the account's initial password in the terminal. It then automatically installs your public SSH key (`~/.ssh/id_ed25519.pub`), verifies passwordless key authentication, and configures passwordless sudo in `/etc/sudoers.d/epd`. You only have to enter the server password once!
|
|
148
|
+
|
|
76
149
|
### Options:
|
|
77
|
-
- `--host <ip>`: Run setup only on a specific host.
|
|
150
|
+
- `--host <ip>`: Run setup only on a specific host (repeatable).
|
|
78
151
|
- `--skip-deploy`: Install prerequisites and start Traefik without executing the first deploy.
|
|
79
152
|
|
|
80
153
|
---
|
|
81
154
|
|
|
82
155
|
## `epd deploy`
|
|
83
156
|
|
|
84
|
-
Executes a zero-downtime blue/green deployment.
|
|
157
|
+
Executes a zero-downtime blue/green deployment. The new version starts alongside the existing live slot, passes its configured health checks, and only then does the reverse proxy seamlessly transition traffic.
|
|
85
158
|
|
|
86
159
|
```bash
|
|
87
160
|
epd deploy [options]
|
|
88
161
|
```
|
|
89
162
|
|
|
90
163
|
### Options:
|
|
91
|
-
-
|
|
164
|
+
- `--dry-run`: Simulate the deployment plan without building images, making SSH connections, or altering remote servers.
|
|
165
|
+
- `-d, --destination <name>`: Deploy using overlay configuration (e.g. `epd.staging.yml`).
|
|
92
166
|
- `--service <name>`: Deploy only a specific service group (e.g. `--service web`).
|
|
93
|
-
- `--host <ip>`: Deploy only to a specific host.
|
|
94
|
-
- `--no-build`: Skip local image build (
|
|
95
|
-
- `--version <tag>`: Explicit version
|
|
167
|
+
- `--host <ip>`: Deploy only to a specific host (repeatable).
|
|
168
|
+
- `--no-build`: Skip local image build (reuse an image already present on the servers).
|
|
169
|
+
- `--version <tag>`: Explicit version or git tag to deploy instead of the current commit.
|
|
96
170
|
- `--recreate-accessories`: Rebuild and restart accessory containers (PostgreSQL, Redis, etc.).
|
|
97
171
|
- `--skip-health`: Skip healthcheck verification (not recommended for production).
|
|
98
172
|
- `--skip-hooks`: Skip `pre_deploy` / `post_deploy` lifecycle scripts.
|
|
@@ -100,9 +174,19 @@ epd deploy [options]
|
|
|
100
174
|
|
|
101
175
|
---
|
|
102
176
|
|
|
177
|
+
## `epd redeploy`
|
|
178
|
+
|
|
179
|
+
Restarts the currently running version across all servers without rebuilding or re-uploading container images.
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
epd redeploy [options]
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
103
187
|
## `epd rollback`
|
|
104
188
|
|
|
105
|
-
Instantly re-routes live traffic to the previously healthy slot.
|
|
189
|
+
Instantly re-routes live traffic to the previously healthy slot without re-building.
|
|
106
190
|
|
|
107
191
|
```bash
|
|
108
192
|
# Roll back to the immediately preceding version
|
|
@@ -119,20 +203,20 @@ epd rollback <version>
|
|
|
119
203
|
|
|
120
204
|
## `epd status`
|
|
121
205
|
|
|
122
|
-
Displays the
|
|
206
|
+
Displays the live deployment state across all configured hosts.
|
|
123
207
|
|
|
124
208
|
```bash
|
|
125
209
|
epd status [options]
|
|
126
210
|
```
|
|
127
211
|
|
|
128
212
|
### Options:
|
|
129
|
-
- `--json`: Output state as structured JSON (
|
|
213
|
+
- `--json`: Output state as structured JSON (ideal for status dashboards or CI scripts).
|
|
130
214
|
|
|
131
215
|
---
|
|
132
216
|
|
|
133
217
|
## `epd logs`
|
|
134
218
|
|
|
135
|
-
View or follow live container or PM2 logs.
|
|
219
|
+
View or follow live container or PM2 logs across replicas and hosts.
|
|
136
220
|
|
|
137
221
|
```bash
|
|
138
222
|
epd logs [options]
|
|
@@ -140,12 +224,12 @@ epd logs [options]
|
|
|
140
224
|
|
|
141
225
|
### Options:
|
|
142
226
|
- `-f, --follow`: Follow / stream logs in real time.
|
|
143
|
-
- `-n, --lines <number>`: Number of lines to show from the end of
|
|
227
|
+
- `-n, --lines <number>`: Number of lines to show from the end of logs (default: 100).
|
|
144
228
|
- `--service <name>`: Filter logs to a specific service (e.g. `web` or `worker`).
|
|
145
229
|
- `--accessory <name>`: View logs from an accessory container (e.g. `db`).
|
|
146
230
|
- `--host <ip>`: Filter logs to a specific server.
|
|
147
231
|
- `--grep <pattern>`: Filter log lines matching a string or pattern.
|
|
148
|
-
- `--since <time>`: Show logs since timestamp (e.g
|
|
232
|
+
- `--since <time>`: Show logs since timestamp (e.g. `10m`, `1h`, `2026-09-08T15:00:00`).
|
|
149
233
|
|
|
150
234
|
---
|
|
151
235
|
|
|
@@ -165,7 +249,7 @@ epd exec --accessory db -i -- psql -U postgres
|
|
|
165
249
|
|
|
166
250
|
## `epd shell`
|
|
167
251
|
|
|
168
|
-
Opens an interactive shell inside a running replica container.
|
|
252
|
+
Opens an interactive shell inside a running replica container or accessory.
|
|
169
253
|
|
|
170
254
|
```bash
|
|
171
255
|
epd shell
|
|
@@ -175,125 +259,155 @@ epd shell --host 203.0.113.10
|
|
|
175
259
|
|
|
176
260
|
---
|
|
177
261
|
|
|
178
|
-
## `epd
|
|
262
|
+
## `epd top`
|
|
179
263
|
|
|
180
|
-
|
|
264
|
+
Real-time multi-server metrics monitor (aliased as `epd stats`). Displays CPU %, memory consumption, container processes, network I/O, disk usage, and host load averages across all servers.
|
|
181
265
|
|
|
182
266
|
```bash
|
|
183
|
-
epd
|
|
184
|
-
epd
|
|
185
|
-
epd
|
|
186
|
-
epd proxy reboot # Restart Traefik proxy
|
|
187
|
-
epd proxy dashboard # Open secure SSH tunnel to Traefik web UI & launch browser
|
|
267
|
+
epd top # Launch interactive streaming metrics dashboard (2s refresh)
|
|
268
|
+
epd top --once # Print a single metrics snapshot and exit
|
|
269
|
+
epd top --host 203.0.113.10 # Monitor a specific server
|
|
188
270
|
```
|
|
189
271
|
|
|
190
272
|
---
|
|
191
273
|
|
|
192
|
-
## `epd
|
|
274
|
+
## `epd ssl`
|
|
193
275
|
|
|
194
|
-
|
|
276
|
+
Inspect and verify Let's Encrypt SSL/TLS certificates managed by Traefik across your servers (aliased as `epd certs`).
|
|
195
277
|
|
|
196
278
|
```bash
|
|
197
|
-
epd
|
|
198
|
-
epd
|
|
199
|
-
epd
|
|
200
|
-
epd dns sync --no-proxied # Disable Cloudflare CDN orange-cloud proxy
|
|
279
|
+
epd ssl # Display table of domains, SANs, issuers, and days remaining
|
|
280
|
+
epd ssl --json # Output certificate metadata as JSON
|
|
281
|
+
epd ssl --host 203.0.113.10 # Query a specific host
|
|
201
282
|
```
|
|
202
283
|
|
|
203
284
|
---
|
|
204
285
|
|
|
205
|
-
## `epd
|
|
286
|
+
## `epd maintenance`
|
|
206
287
|
|
|
207
|
-
|
|
288
|
+
Toggle or inspect zero-downtime maintenance mode for this application. Injects an instant Traefik routing override that presents a responsive 503 Maintenance page to all public visitors without stopping backend containers or dropping TLS certificates.
|
|
208
289
|
|
|
209
290
|
```bash
|
|
210
|
-
epd
|
|
211
|
-
epd
|
|
212
|
-
epd
|
|
213
|
-
epd
|
|
214
|
-
epd hetzner create <name> --setup # Create and immediately configure with epd setup
|
|
215
|
-
epd hetzner delete <name> # Delete server
|
|
291
|
+
epd maintenance status # Check if maintenance mode is active
|
|
292
|
+
epd maintenance on # Enable maintenance mode
|
|
293
|
+
epd maintenance on -m "Upgrading database. Back at 15:00 UTC."
|
|
294
|
+
epd maintenance off # Disable maintenance mode and restore traffic
|
|
216
295
|
```
|
|
217
296
|
|
|
218
297
|
---
|
|
219
298
|
|
|
220
|
-
## `epd
|
|
299
|
+
## `epd backup`
|
|
221
300
|
|
|
222
|
-
|
|
301
|
+
Create compressed database and volume backups from running accessories (PostgreSQL, MySQL, MariaDB, MongoDB, or generic persistent volumes).
|
|
223
302
|
|
|
224
303
|
```bash
|
|
225
|
-
epd
|
|
226
|
-
epd
|
|
304
|
+
epd backup # Back up all configured accessories
|
|
305
|
+
epd backup db # Back up a specific database accessory
|
|
306
|
+
epd backup db -o ./my-backup.sql.gz # Custom local output file path
|
|
227
307
|
```
|
|
228
308
|
|
|
229
309
|
---
|
|
230
310
|
|
|
231
|
-
## `epd
|
|
311
|
+
## `epd restore`
|
|
232
312
|
|
|
233
|
-
|
|
313
|
+
Restore a database or volume snapshot into a live running accessory.
|
|
234
314
|
|
|
235
315
|
```bash
|
|
236
|
-
epd
|
|
237
|
-
epd
|
|
238
|
-
epd remove --keep-data # Leave persistent volume data on disk
|
|
316
|
+
epd restore ./backups/myapp-db-2026-09-07.sql.gz
|
|
317
|
+
epd restore ./backups/myapp-db.sql.gz --accessory db -y # Skip confirmation prompt
|
|
239
318
|
```
|
|
240
319
|
|
|
241
320
|
---
|
|
242
321
|
|
|
243
|
-
## `epd
|
|
322
|
+
## `epd gh-action`
|
|
244
323
|
|
|
245
|
-
|
|
324
|
+
Generate a production-ready GitHub Actions deployment workflow (aliased as `epd ci`).
|
|
246
325
|
|
|
247
326
|
```bash
|
|
248
|
-
epd
|
|
249
|
-
epd maintenance on # Enable maintenance mode
|
|
250
|
-
epd maintenance on -m "Migrating database. Back at 15:00 UTC."
|
|
251
|
-
epd maintenance off # Disable maintenance mode and restore traffic
|
|
327
|
+
epd gh-action [options]
|
|
252
328
|
```
|
|
253
329
|
|
|
330
|
+
Prompts for trigger events (`push`, `pull_request`, or both), target git branch, and destination overlay. Displays the exact repository secrets required (`SSH_PRIVATE_KEY`, DNS tokens, etc.).
|
|
331
|
+
|
|
254
332
|
---
|
|
255
333
|
|
|
256
|
-
## `epd
|
|
334
|
+
## `epd auth`
|
|
257
335
|
|
|
258
|
-
|
|
336
|
+
Manage linked Cloudflare and Hetzner accounts (aliased as `epd login`).
|
|
259
337
|
|
|
260
338
|
```bash
|
|
261
|
-
epd
|
|
262
|
-
epd ssl --json # Output certificate metadata as JSON
|
|
263
|
-
epd ssl --host 203.0.113.10 # Query a specific host
|
|
339
|
+
epd auth [status|cloudflare|hetzner|logout]
|
|
264
340
|
```
|
|
265
341
|
|
|
266
342
|
---
|
|
267
343
|
|
|
268
|
-
## `epd
|
|
344
|
+
## `epd dns`
|
|
269
345
|
|
|
270
|
-
|
|
346
|
+
Manage automated DNS record synchronization with Cloudflare or Hetzner DNS.
|
|
271
347
|
|
|
272
348
|
```bash
|
|
273
|
-
epd
|
|
274
|
-
epd
|
|
275
|
-
epd
|
|
349
|
+
epd dns status # Compare live DNS records against server IPs
|
|
350
|
+
epd dns sync # Synchronize A/AAAA records
|
|
351
|
+
epd dns sync --dry-run # Preview changes without making API requests
|
|
352
|
+
epd dns sync --no-proxied # Disable Cloudflare CDN orange-cloud proxy
|
|
276
353
|
```
|
|
277
354
|
|
|
278
355
|
---
|
|
279
356
|
|
|
280
|
-
## `epd
|
|
357
|
+
## `epd hetzner`
|
|
281
358
|
|
|
282
|
-
|
|
359
|
+
Manage Hetzner Cloud infrastructure directly.
|
|
283
360
|
|
|
284
361
|
```bash
|
|
285
|
-
epd
|
|
286
|
-
epd
|
|
287
|
-
epd
|
|
362
|
+
epd hetzner list # List all servers in your Hetzner Cloud project
|
|
363
|
+
epd hetzner types # View server specs and prices (vCPU, RAM, EUR/mo)
|
|
364
|
+
epd hetzner locations # List available datacenter locations
|
|
365
|
+
epd hetzner create <name> # Create new VPS (e.g. --type cx22 --location fsn1)
|
|
366
|
+
epd hetzner create <name> --setup # Create and immediately configure with epd setup
|
|
367
|
+
epd hetzner delete <name> # Delete server
|
|
288
368
|
```
|
|
289
369
|
|
|
290
370
|
---
|
|
291
371
|
|
|
292
|
-
## `epd
|
|
372
|
+
## `epd sevalla`
|
|
293
373
|
|
|
294
|
-
|
|
374
|
+
Manage Sevalla cloud applications, deployments, and managed database clusters.
|
|
295
375
|
|
|
296
376
|
```bash
|
|
297
|
-
epd
|
|
298
|
-
epd
|
|
377
|
+
epd sevalla list # List all Sevalla applications
|
|
378
|
+
epd sevalla databases # List managed database clusters
|
|
379
|
+
epd sevalla deploy <id> # Trigger deployment of a Sevalla application
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
---
|
|
383
|
+
|
|
384
|
+
## `epd lock`
|
|
385
|
+
|
|
386
|
+
Manage atomic deployment locks.
|
|
387
|
+
|
|
388
|
+
```bash
|
|
389
|
+
epd lock status # Check who currently holds the deploy lock
|
|
390
|
+
epd lock release # Forcefully release the deploy lock
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
---
|
|
394
|
+
|
|
395
|
+
## `epd remove`
|
|
396
|
+
|
|
397
|
+
Completely tear down an application from the servers.
|
|
398
|
+
|
|
399
|
+
```bash
|
|
400
|
+
epd remove
|
|
401
|
+
epd remove -y # Non-interactive confirmation
|
|
402
|
+
epd remove --keep-data # Leave persistent volume data on disk
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
---
|
|
406
|
+
|
|
407
|
+
## `epd update`
|
|
408
|
+
|
|
409
|
+
Check for new releases and upgrade EPD to the latest version.
|
|
410
|
+
|
|
411
|
+
```bash
|
|
412
|
+
epd update
|
|
299
413
|
```
|
package/package.json
CHANGED