daypress
admin routedaypress --port 8090
doc versionv1.0.4
reading time5 min read
section group01 · Getting Started
Docs/Getting Started
daypress --port 80905 min readv1.0.4

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):

directory layout
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 assets

Install & 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 / SubcommandEnv VariableDefault & Purpose
-p, --port <PORT>PORT8090 — HTTP port serving public SSR, /d-admin/, REST v2/v1, and POST /mcp.
--host <HOST>HOST127.0.0.1 locally or 0.0.0.0 inside Docker / LAN mode.
--db <PATH>DATABASE_PATHdata/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_DOMAINProvisions & auto-renews a Let's Encrypt HTTPS certificate via Rustls ACME (TLS-ALPN-01).
--tls-email <EMAIL>DAYPRESS_TLS_EMAILContact email for ACME account registration and expiry notices.
--https-port <PORT>DAYPRESS_HTTPS_PORT443 — HTTPS listener port when --tls-domain is enabled (certs stored in data/tls).
doctor [--benchmark] [--json]DATABASE_PATHRuns the 10-point 1.0 Security Audit, Schema v100 check, Wasm ABI v1 check, and 5-workload benchmark.
reset-password <USER>DAYPRESS_NEW_PASSWORDOffline password reset; accepts --sign-out-everyone and --disable-2fa.
—DAYPRESS_ADMIN_PASSWORDCreates the initial admin account deterministically on first boot without interactive /setup.