base44 site deploy
Deploy built site files to Base44 hosting.Table of Contents
- Syntax
- Authentication
- Prerequisites
- How It Works
- Interactive Flow
- Typical Workflow
- Configuration
- Error Handling
- Use Cases
- Notes
Syntax
Options
| Option | Description |
|---|---|
-y, --yes | Skip confirmation prompt |
-y flag for non-interactive/automated deployments:
Authentication
Required: Yes. If not authenticated, you’ll be prompted to login first.Prerequisites
- Must be run from a Base44 project directory
- Project must have
site.outputDirectoryconfigured in project config - Site must be built before deploying (run your build command first)
- SPA only: Base44 hosting supports Single Page Applications with a single
index.htmlentry point. All routes are served fromindex.html(client-side routing).
How It Works
- Reads project configuration
- Validates that site configuration exists
- Prompts for deployment confirmation showing the output directory
- Creates an archive of site files from the output directory
- Deploys to Base44 hosting
- Returns the app URL
Interactive Flow
Typical Workflow
Configuration
Thesite.outputDirectory in your project configuration should point to where your framework outputs built files:
- Vite: typically
./dist - Next.js: typically
./.nextor./out - Create React App: typically
./build - Custom: whatever your build tool outputs to
Error Handling
If site configuration is missing:Use Cases
- Deploy your site after making changes
- Push new versions of your application
- Deploy after updating content or functionality
- Part of your CI/CD pipeline
Notes
- Always build your site before deploying
- The command deploys whatever is in your output directory
- Make sure your build completed successfully before deploying
- Previous deployments are preserved (versioned) in Base44
- Deployment is immediate and updates your live site

