DeployCLI Reference
eda doctor
Run pre-flight connectivity, server health, Docker daemon, disk space, and local project checks
The eda doctor command runs comprehensive pre-flight diagnostics across your local environment, remote server connectivity, bearer token authentication, Docker daemon health, host disk capacity, Caddy reverse-proxy status, and local explita.json configuration.
eda doctor [options]
explita deploy doctor [options]1. Options
| Flag | Shorthand | Description |
|---|---|---|
--help | -h | Display usage instructions and options. |
2. Diagnostics Suite
When run, eda doctor systematically executes seven validation phases:
eda doctor1. Remote Connectivity & Authentication
- Verifies server URL format and measures API round-trip ping latency.
- Validates that
DEPLOY_TOKENis present and accepted by the server.
2. Host System & Resource Health
- Queries host CPU load and total memory capacity.
- Evaluates server root filesystem free space. Alerts with warnings if free space drops below 20%, and errors if below 10%.
3. Remote Docker Daemon
- Confirms Docker Engine is active and running on the remote host.
- Verifies Docker version compatibility (
>= 24.0.0). - Reports count of active and paused containers.
4. Caddy Reverse Proxy
- Probes Caddy's dynamic administration API (
http://localhost:2019/config/). - Confirms automated ACME Let's Encrypt TLS certificate generation is operational.
5. Local Project & Dockerfile
- Validates presence and JSON schema of
explita.json. - Confirms
Dockerfileexists in the local directory (or warns if no build instructions exist). - Inspects
EXPOSEport alignment betweenDockerfileandexplita.json.
6. Version Updates
- Compares installed CLI version against latest GitHub / npm release.
- Checks if remote server software has updates available via upstream setup script.
3. Sample Diagnostics Output
Explita Deploy Pre-Flight Diagnostics
1. Remote Connectivity & Authentication:
✔ Server Endpoint: http://198.51.100.42:39756 (28ms latency)
✔ API Token: Valid bearer authentication
2. Host System & Storage Health:
✔ Host Memory: 3.8 GB free (52% available)
✔ Host Disk Space: 42.1 GB free (82% available)
3. Remote Docker Daemon:
✔ Docker Engine: v27.3.1 active (3 running containers)
4. Caddy Reverse Proxy:
✔ Admin API: Reachable (Dynamic configuration active)
5. Local Project Configuration:
✔ Project File: explita.json found
✔ Port Binding: Port 3000 matches Dockerfile EXPOSE 3000
✓ All diagnostic checks passed! System ready for deployment.