base44 dev
Start local development for a linked Base44 project.
This command always starts the Base44 backend locally. If base44/config.jsonc defines site.serveCommand, it also runs your frontend dev server from the project root and wires it to the local backend automatically.
Syntax
npx base44 dev [options]Options
| Option | Description | Required | Default |
|---|---|---|---|
-p, --port <number> |
Port for the local Base44 backend | No | 4400 |
--remote |
Serve only the frontend, against your app's production backend | No | — |
Authentication
Required: Yes. If not authenticated, you'll be prompted to login first.
Requirements
- Must be run from a linked local Base44 project
base44/.app.jsoncmust existbase44 devcannot be used with--app-idorBASE44_APP_ID
What It Does
- Reads your linked local project configuration
- Starts the local Base44 backend for entities, functions, and auth routes
- Watches local Base44 resources and reloads them when they change
- If
site.serveCommandis configured, starts your frontend dev server from the project root - Injects
VITE_BASE44_APP_IDandVITE_BASE44_APP_BASE_URLinto the frontend process - Shuts everything down cleanly when you stop the command
Frontend + Backend Behavior
base44 dev works for both backend and frontend:
- Backend: always runs locally
- Frontend: runs only when
base44/config.jsoncincludessite.serveCommand
Before using base44 dev for full-stack local development, verify your config:
{
"site": {
"serveCommand": "npm run dev"
}
}If site.serveCommand is missing, base44 dev still works, but it only starts the Base44 backend.
Remote Mode (--remote)
npx base44 dev --remote starts no local backend: it runs only your frontend (site.serveCommand),
wired to your app's production backend — every read and write hits live data. Use it to develop
the UI against real content; default to plain base44 dev otherwise.
Examples
# Start local development on the default port
npx base44 dev
# Start the backend on a specific port
npx base44 dev --port 4500
# Frontend only, against the production backend (live data)
npx base44 dev --remoteNotes
- Use this from a linked local project, not with
--app-id - When the frontend is running, the CLI streams backend and frontend output together
- If the frontend process exits, the local dev environment shuts down too