- Void Platform scaffold defines the standard path from project init to live deployment
- Two setup paths: interactive installer or scriptable CLI installation on Cloudflare
- Core flow:
void init→void auth login→void platform connect→void deploy - Security rule: keep Cloudflare, database, JWT, and encryption secrets in CI encrypted storage
- Domain planning: align DNS, HTTPS certificates, and routing before production traffic
What the Void Platform Scaffold Includes
The Void Platform scaffold is the standard structure that carries an application from a local project directory to a running deployment inside your own Cloudflare account. It bundles project management, authentication, databases, storage, logs, deployment controls, and rollback into a single workflow, as described in the official platform docs.
Instead of assembling deployment infrastructure piece by piece, the scaffold gives every project the same shape: a CLI connection to the platform, a project identity, a deployment target, and an operational surface for logs and rollbacks.
Cloudflare Deployment
- Deploy applications through a managed platform workflow
- Configurable application domains
- Interactive and command-line installation
Project & Access Management
- Project creation and association
- Platform login configuration
- Team-oriented application management
Data & Operations
- Database and storage resources
- Deployment status and logs
- Rollback and cancellation controls
The scaffold layers separate cleanly, which is what makes it repeatable across projects and environments:
| Layer | Responsibility | Key Tooling |
|---|---|---|
| Platform | Hosts installations, users, and resources | Dashboard, void platform connect |
| Project | Groups one application and its environments | void init, void setup |
| Deployment | Builds and ships application versions | void deploy |
| Operations | Logs, health, events, rollback | void logs, platform controls |
| Security | Auth, credentials, secrets, Zero Trust | void auth, void secrets |
Treat the scaffold as a contract: installation answers "how it starts," deployment answers "how it ships," CLI answers "how it's driven," and operations answer "how it runs after launch." Keep each concern in its own lane when troubleshooting.
Installation: Building the Scaffold in Cloudflare
Installation establishes the Cloudflare-based environment that every later deployment depends on. You can follow an interactive installation flow or use the command-line installer when you need a repeatable, scriptable setup.
Choose the installation method
Pick interactive installation for guided prompts, or CLI installation for automation-friendly, repeatable configuration. Both produce the same platform structure.
Set the platform name
Define the name that identifies this Void Platform installation inside your Cloudflare account and administration workflows.
Configure the application domain
Specify the domain used to reach the platform and its management interface. Plan DNS ownership before this step.
Select login and authentication settings
Choose how users sign in — including GitHub, Google, or OIDC when enabled — and confirm platform access configuration.
Review Workers Dev test mode and resources
Decide whether Workers Dev test mode should be enabled, and configure the database and storage resources the installation requires.
| Setting | Interactive Install | CLI Install |
|---|---|---|
| Best for | First-time setup, exploration | Automation, repeatable environments |
| Configuration style | Guided prompts | CLI flags and workflow input |
| Test mode | Prompted during setup | Set via installation parameters |
| Repeatability | Manual each time | Scriptable and versionable |
Confirm your Cloudflare account context, domain control, and required resource plan before starting. Changing the platform name or application domain after installation is a coordinated change, not a quick edit.
First Deployment: The Scaffold in Motion
Once the platform is installed, the scaffold's deployment path takes over. The first deployment guide walks through the full sequence from an empty project to a reachable application.
Create or prepare a project
Start from a dedicated project directory with application files and configuration ready. Run void init or void setup to establish the project context.
Connect to the platform
Run the setup workflow to link the local project with Void Platform, completing authentication when prompted and selecting the intended platform account.
Review deployment settings
Before deploying, verify the target platform, project name, and application settings. A wrong project selection is the most common first-deployment mistake.
Deploy and monitor
Run void deploy, keep the session open, and watch CLI output and deployment status until the process completes. Use void logs to inspect any failures.
The CLI commands that drive the scaffold cover the full application lifecycle:
| Category | Command | Purpose |
|---|---|---|
| Initialization | void init | Initialize Void project configuration in the current directory |
| Authentication | void auth login | Create an interactive CLI login session |
| Platform connection | void platform connect | Connect the local project to a platform environment |
| Deployment | void deploy | Build and deploy the current project |
| Logs | void logs | Inspect application or deployment logs |
| Database | void db | Run database-related project operations |
| Secrets | void secrets | Manage sensitive configuration values |
If a deployment goes wrong, the scaffold includes interruption handling, cancellation, and rollback to a previous stable state — you don't need to redeploy from scratch to recover.
Domains, Routing, and Configuration
Domain configuration is where scaffold mistakes surface in production. Plan the application hostname, DNS, HTTPS coverage, and routing together so traffic reaches the intended environment, following the domains guide.
- Choose the application domain: a stable production hostname, plus separate staging or preview hostnames when isolation matters
- Prepare DNS records: update the authoritative zone with the record type and target the installer specifies
- Enable HTTPS coverage: confirm the certificate covers the exact hostname, and plan wildcards for nested hostnames
- Check routing conflicts: verify no duplicate hostname assignments or competing wildcard routes capture requests
- Handle domain changes carefully: add and validate the new domain before removing the old one, and update OAuth callbacks and webhooks that reference the old hostname
| Domain Type | Recommended Use | Caution |
|---|---|---|
| Custom production domain | Public traffic | Verify certificate coverage first |
| Nested hostnames | Environments, tenants, services | Watch wildcard and inheritance behavior |
| workers.dev address | Testing and validation | Avoid using for production traffic |
A hostname switch touches DNS, certificates, routing, environment variables, and external integrations simultaneously. Plan the transition and keep redirects in place rather than swapping domains abruptly.
Authentication and CI Secrets
Void Platform authentication has distinct layers, and mixing them is the fastest way to create security gaps. A user login session identifies a person; a platform connection associates a project; project credentials act for a workflow; administrator tokens carry platform-wide power.
| Credential Type | Who It Represents | Recommended For |
|---|---|---|
| Administrator access | Platform owner | Installations, teams, access policy |
| Team member login | An individual person | Local development, interactive work |
| Project credentials | A specific project | App integrations, deployment workflows |
| CI credentials | An automation job | Non-interactive pipeline deployments |
| Cloudflare Access identity | An access-control layer | Identity-aware protection of admin surfaces |
For CI, keep every sensitive value out of the repository and inside the CI provider's encrypted secret store:
- Cloudflare configuration: dedicated credential with the narrowest permissions, exposed only to the deployment step
- Database configuration: separate staging and production values; never print connection strings in build logs
- JWT secrets: long-lived credentials rotated through a planned process
- R2 configuration: per-environment bucket credentials, never embedded in client-side code
- Project encryption key: never committed or logged; replaced only with a migration plan for encrypted data
Prefer project-scoped credentials for ordinary deployments and reserve administrator tokens for tasks that genuinely require platform-wide access. Rotate credentials whenever team ownership changes.
Scaffold Readiness Checklist
Before you consider a Void Platform scaffold production-ready, work through this checklist:
Production Readiness:
- Platform installed with a confirmed name and application domain
- Project connected and first deployment verified end to end
- HTTPS certificate covers every production hostname
- Authentication layers separated for admins, members, and CI
- All secrets stored in CI encrypted storage, none in the repository
Q: What is the Void Platform scaffold?
It is the standard project-to-production structure of Void Platform: CLI project initialization, platform connection on Cloudflare, deployment via void deploy, and an operational layer for logs, rollback, domains, and secrets.
Q: Should I use interactive or CLI installation?
Use interactive installation for a guided first-time setup. Use CLI installation when you need a repeatable, scriptable process, such as recreating environments or provisioning through automation.
Q: How do I recover from a failed deployment?
Use void logs to inspect the failure, then the platform's deployment controls to cancel an interrupted deployment or roll back to the previous stable state. Redeploying from scratch is rarely necessary.
Q: Which credentials should CI pipelines use?
Use non-interactive, project-scoped credentials stored in the CI provider's encrypted secret store. Keep database, JWT, R2, Cloudflare, and encryption values separate per environment, and never commit them to source control.