Void Platform API: CLI Workflows, Setup, and Auth Guide - features

Void Platform API: CLI Workflows, Setup, and Auth Guide

Learn how the Void Platform API and CLI connect projects, handle deployment, authentication, domains, and secrets on Cloudflare-based workflows.

2026-10-17
Void Platform Wiki Team
Quick Guide
  • Void Platform API: The interface connecting the Void CLI to platform resources, deployment, and identity services.
  • Two control modes: Manage everything through the CLI or the Web Dashboard.
  • Cloudflare runtime: Deploy and self-host applications inside your own Cloudflare account.
  • Credential layers: User sessions, project credentials, and administrator tokens serve different workflows.
  • Start here: Authenticate, connect your project, then run your first deployment.

What Is the Void Platform API?

The Void Platform API is the backbone of Void Platform, a cloud deployment and platform management tool designed for developers who want to build, deploy, and operate web applications on Cloudflare. The API sits between the Void CLI and the platform's resources — projects, deployments, authentication, databases, storage, logs, and domains — so every command you run translates into a structured platform operation.

Officially documented at void.cloud, the platform supports connecting projects, deploying applications, managing users and permissions, configuring domains, and running self-hosted installations inside your own Cloudflare account.

Void Platform exposes its capabilities through several functional areas:

Functional AreaWhat It CoversPrimary Interface
DeploymentBuild, deploy, monitor, cancel, and roll back applicationsvoid deploy
Project ManagementCreate and associate projects, manage team accessCLI + Dashboard
AuthenticationUser sessions, OIDC, GitHub/Google login, admin tokensvoid auth login
DomainsDNS, HTTPS, nested hostnames, workers.dev test routesInstallation config
Data and StorageDatabase resources and application storagePlatform resources
OperationsLogs, health checks, deployment events, troubleshootingvoid logs
Architecture Tip

Think of the Void Platform API as three layers: the CLI (your local interface), the platform API (authorization, projects, and routing), and the Cloudflare runtime (where applications actually execute). Keeping these layers distinct makes debugging much easier.

Core CLI Commands for API Workflows

The Void CLI is the primary way developers interact with the platform API. Commands are grouped by workflow stage, so you can move from project initialization through deployment and operations without leaving the terminal.

CategoryCommandPurposeBest Use Case
Initializationvoid initInitialize Void project configurationStarting a new project or onboarding a repository
Authenticationvoid auth loginCreate an interactive CLI login sessionLocal development and admin workflows
Platform Connectionvoid platform connectLink the local project to a platform projectTargeting an existing platform environment
Deploymentvoid deployBuild and deploy the current projectManual releases or CI pipelines
Logsvoid logsInspect application and deployment logsDebugging failed deployments or runtime errors
Databasevoid dbDatabase-related project operationsCoordinating migrations with deployments
Secretsvoid secretsManage sensitive configuration valuesKeeping credentials out of the repository
Domainsvoid platform installationConfigure domain routing and installation settingsCustom domains, DNS, and HTTPS setup

Interactive Workflows

  • Guided prompts for setup
  • Great for first-time users
  • Confirms platform and project context

Scriptable Workflows

  • Command-line parameters
  • Repeatable installations
  • Fits CI/CD pipelines

Status Inspection

  • Check platform connection state
  • Review deployment status
  • JSON output for automation
Verify Before You Deploy

Always confirm the active account, connected platform, and target project before running void deploy. Deploying to the wrong platform project is one of the most common workflow mistakes.

Step-by-Step: First Deployment Through the API

Follow this sequence to take a project from an empty directory to a live application. The full flow is documented in the first deployment guide.

1

Initialize and Prepare the Project

Start from a dedicated project directory with your application files and configuration ready. Run void setup to begin the guided workflow that establishes the project context used by every later command.

2

Authenticate and Connect the Platform

Complete the CLI authentication steps, then use the connection flow to associate your local repository with the intended Void Platform project and environment. Confirm the platform selection when prompted.

3

Review Deployment Settings

Before deploying, verify the target application, deployment platform, project name, and related resources. A quick review here prevents misdirected deployments and naming conflicts.

4

Run the Deployment

Execute void deploy and keep the terminal session open. Monitor the CLI output and platform status until the build and deployment process finishes successfully.

5

Verify and Manage the Result

Check the deployment status and logs, test the application URL, and use rollback or cancellation controls if anything needs to be reverted to a previous stable state.

Deployment Safety Net

Void Platform supports deployment interruption, cancellation, and rollback. If a release goes wrong, you can revert to the last stable deployment rather than starting over from scratch.

Authentication Layers and Security

Void Platform authentication is layered, and mixing up these layers causes most access-control problems. Each credential type answers a different question.

Credential TypeWho or What It IdentifiesTypical OwnerStorage Guidance
User login sessionAn individual personDeveloper, adminLocal interactive session only
Platform connectionA project-to-platform linkProject maintainerManaged by CLI configuration
Project credentialsA specific project workflowAutomation, integrationsCI encrypted secrets, scoped per project
Administrator tokenPlatform-wide operationsPlatform ownerRestricted storage, smallest scope possible
Cloudflare Access identityAn access-control layerSecurity teamSeparate from Void Platform login

External identity providers add flexibility without replacing platform credentials:

  • GitHub and Google login provide familiar sign-in for team members when enabled by an administrator.
  • OIDC connects platform access to an organization-managed identity provider.
  • Cloudflare Access adds an identity-aware layer in front of protected applications or admin surfaces — but it is distinct from a Void CLI login or project credential.
CI Secrets Rule

Never commit Cloudflare credentials, database connection strings, JWT signing secrets, or project encryption keys to source control. Store them in your CI provider's encrypted secret store and expose them only to the deployment job. The official CI and credentials documentation covers injection patterns in detail.

Void Platform Security Checklist:

  • Separate admin tokens from project credentials and CI variables
  • Use non-interactive credentials for CI deployment jobs
  • Rotate project credentials when team ownership changes
  • Verify HTTPS certificate coverage on all production domains
  • Classify every environment variable as sensitive or public

Domains, Resources, and Operations

Domain configuration and ongoing operations round out the platform API surface. Plan DNS, certificates, and routing together so traffic always reaches the intended environment.

Configuration TaskKey ConsiderationsVerification Step
Choose application domainProduction vs staging vs workers.dev test hostnamesHostname maps to one application and environment
Prepare DNS recordsCorrect record type and target per installation instructionsDNS resolves to the platform destination
Enable HTTPSCertificate provisioning time, wildcard coverage for nested hostsNo browser warnings on the exact hostname
Nested domains and wildcardsEnvironment or tenant routing, avoid overridesTest root, nested, and wildcard paths separately
Domain changesAdd new domain before removing old, update callbacks and webhooksDirect navigation and integrations both work

On the operations side, use void logs to investigate failed deployments and startup errors, review deployment events for audit trails, and treat health checks as part of your daily maintenance routine. Self-hosted installations running in your own Cloudflare account give you control over resource configuration during installation, including database and storage resources.

Self-Hosting Advantage

Because Void Platform can be installed into your own Cloudflare account, platform data, authentication policy, and resource limits stay under your control — a strong option for teams with strict infrastructure or compliance requirements.

FAQ

Q: What is the Void Platform API used for?

The Void Platform API powers the connection between the Void CLI and platform resources. It handles project management, deployment operations, authentication, domain routing, databases, storage, and logs for applications running on Cloudflare.

Q: Do I need the CLI to use Void Platform?

The CLI is the primary interface and the recommended way to run setup, deployment, and operational commands. Platform installation and administration can also be managed through interactive flows and dashboard surfaces, but deployment workflows are CLI-centered.

Q: How do I authenticate a CI pipeline with Void Platform?

Use non-interactive project-scoped credentials stored in your CI provider's encrypted secret store. Expose them only to the deployment job, keep staging and production credentials separate, and reserve administrator tokens for tasks that genuinely require platform-wide access.

Q: Can I roll back a failed deployment?

Yes. Void Platform provides deployment controls for interruption, cancellation, and rollback, letting you revert an application to a previous stable state instead of rebuilding from scratch.