Installation, Directory Layout & CLI Reference
Daypress ships as a single native Rust executable powered by Axum, Tokio, and an embedded WAL-mode SQLite engine—zero PHP-FPM workers, zero MySQL daemon, and zero external Node asset build step.
Site directory layout
Create a dedicated folder for each site. On first launch, Daypress automatically creates data/, uploads/, and backups/ relative to your working directory (or relative to --db):
my-site/
├── daypress # Self-contained Rust executable (daypress.exe on Windows)
├── data/
│ ├── daypress.sqlite # Primary SQLite database (WAL mode, Schema Contract v100)
│ ├── daypress.sqlite-wal # Write-ahead log enabling concurrent lock-free reads
│ ├── tls/ # Automatic Let's Encrypt ACME certificates (--tls-domain)
│ └── static-export/ # Compiled Static Edge output (when publishing locally)
├── uploads/ # Original uploads + auto-generated AVIF, WebP & responsive crops
├── backups/ # Online VACUUM INTO snapshots & pre-update binary rollbacks
└── static/themes/ # Imported WordPress theme stylesheets & custom assetsInstall & start Daypress
Download the archive and SHA256SUMS from GitHub Releases, verify the checksum, and launch:
# Linux (x86_64 or aarch64) sha256sum --check --ignore-missing SHA256SUMS tar -xzf daypress-v1.0.4-x86_64-unknown-linux-gnu.tar.gz ./daypress --port 8090 --db data/daypress.sqlite # macOS (Apple Silicon aarch64 or Intel — clear Gatekeeper quarantine once) tar -xzf daypress-v1.0.4-aarch64-apple-darwin.tar.gz xattr -d com.apple.quarantine daypress ./daypress --port 8090 --db data/daypress.sqlite # Windows (PowerShell) Expand-Archive daypress-v1.0.4-x86_64-pc-windows-msvc.zip -DestinationPath . .\daypress.exe --port 8090 --db data/daypress.sqlite
First Boot: Open
http://localhost:8090/setup in your browser to finish 60-second onboarding, or set DAYPRESS_ADMIN_PASSWORD before starting to provision admin headlessly. See First-Time Setup Wizard.CLI flags, subcommands & environment variables
| Flag / Subcommand | Env Variable | Default & Purpose |
|---|---|---|
-p, --port <PORT> | PORT | 8090 — HTTP port serving public SSR, /d-admin/, REST v2/v1, and POST /mcp. |
--host <HOST> | HOST | 127.0.0.1 locally or 0.0.0.0 inside Docker / LAN mode. |
--db <PATH> | DATABASE_PATH | data/daypress.sqlite — Path to the WAL-mode SQLite database file. |
--mcp-stdio | — | Runs Daypress as a local JSON-RPC 2.0 Stdio MCP server against --db (zero network port). |
--tls-domain <DOMAIN> | DAYPRESS_TLS_DOMAIN | Provisions & auto-renews a Let's Encrypt HTTPS certificate via Rustls ACME (TLS-ALPN-01). |
--tls-email <EMAIL> | DAYPRESS_TLS_EMAIL | Contact email for ACME account registration and expiry notices. |
--https-port <PORT> | DAYPRESS_HTTPS_PORT | 443 — HTTPS listener port when --tls-domain is enabled (certs stored in data/tls). |
doctor [--benchmark] [--json] | DATABASE_PATH | Runs the 10-point 1.0 Security Audit, Schema v100 check, Wasm ABI v1 check, and 5-workload benchmark. |
reset-password <USER> | DAYPRESS_NEW_PASSWORD | Offline password reset; accepts --sign-out-everyone and --disable-2fa. |
| — | DAYPRESS_ADMIN_PASSWORD | Creates the initial admin account deterministically on first boot without interactive /setup. |